Advertisement
Guest User

Untitled

a guest
Mar 28th, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #CC = cc
  2. CFLAGS=-Wall (flag here?)
  3. OUTFILE=app
  4.  
  5. # Debug flags
  6. DFLAGS=-g -DDEBUG
  7.  
  8. # Release flags
  9. RFLAGS=
  10.  
  11. # Targets to build
  12. SOURCES=PosixSavings.c
  13.  
  14. .PHONY: all
  15. all: CFLAGS+=$(RFLAGS)
  16. all: link
  17.  
  18. .PHONY: all-debug
  19. all-debug: CFLAGS+=$(DFLAGS)
  20. all-debug: link
  21.  
  22. .PHONY: clean
  23. clean:
  24. $(RM) $(SRCcIR)/*~
  25. $(RM) $(INCDIR)/*~
  26. $(RM) *~
  27. $(RM) *.o
  28. $(RM) $(OUTFILE)
  29.  
  30. link:
  31. $(CC) $(CFLAGS) $(SOURCES) -o $(OUTFILE) (flag here?)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement