Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Makefile calculPi
- CC = gcc # compiler/linker frontend
- INCL = -I$(INCL_DIR) # includes
- DEFS = -D_DEBUG_ # defines
- CFLAGS = -g $(INCL) $(DEFS) # compiler flags
- LFLAGS = -lpthread -lm -g # linker flags
- OBJ = approx.o producteur.o sequentialApproximation.o main.o
- BIN = calculPi.exe
- LINKOBJ = approx.o producteur.o sequentialApproximation.o main.o
- RM = rm -fv
- all: $(BIN)
- clean:
- ${RM} *\~ \#*\# $(OBJ)
- clean_all: clean
- ${RM} $(BIN)
- cleanall: clean
- ${RM} $(BIN)
- $(BIN): $(OBJ)
- $(CC) $(LFLAGS) -o $@ $^
- main.o: main.c
- approx.o: approx.c approx.h
- producteur.o: producteur.c producteur.h
- sequentialApproximation.o : sequentialApproximation.c sequentialApproximation.h
- .c.o:
- $(CC) $(CFLAGS) -c $<
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement