Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #CC = cc
- CFLAGS=-Wall (flag here?)
- OUTFILE=app
- # Debug flags
- DFLAGS=-g -DDEBUG
- # Release flags
- RFLAGS=
- # Targets to build
- SOURCES=PosixSavings.c
- .PHONY: all
- all: CFLAGS+=$(RFLAGS)
- all: link
- .PHONY: all-debug
- all-debug: CFLAGS+=$(DFLAGS)
- all-debug: link
- .PHONY: clean
- clean:
- $(RM) $(SRCcIR)/*~
- $(RM) $(INCDIR)/*~
- $(RM) *~
- $(RM) *.o
- $(RM) $(OUTFILE)
- link:
- $(CC) $(CFLAGS) $(SOURCES) -o $(OUTFILE) (flag here?)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement