Guest User

Untitled

a guest
Dec 5th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.74 KB | None | 0 0
  1. # Compiler flags: all warnings + debugger meta-data
  2. CFLAGS = -Wall -g -I/usr/local/include -L/usr/local/lib
  3.  
  4. # External libraries: math and xlib
  5. LIBS = -lm -lX11
  6.  
  7. # Pre-defined macros for conditional compilation
  8. DEFS = -DDEBUG_FLAG -DEXPERIMANTAL=0
  9.  
  10. # The final executable program file, i.e. name of the program
  11. BIN = xlibtest
  12.  
  13. # Object files from which $BIN depends
  14. # OBJS = xlibtest.o
  15.  
  16. # This default rule compiles the executable program
  17. $(BIN): $(BIN).c
  18.     $(CC) $(CFLAGS) $(DEFS) $(LIBS) $(BIN).c -o $(BIN)
  19.  
  20. # This rule compiles each module into it's object file
  21. # %.o: %.c %.h
  22. #   $(CC) -c $(CFLAGS) $(DEFS) $< -o $@
  23.  
  24. clean:
  25.     rm -f *~ *.o $(BIN)
  26.  
  27. check-syntax:
  28.     gcc -o null -S ${CHK_SOURCES}  $(CFLAGS)
  29.  
  30. depend:
  31.     makedepend -Y -- $(CFLAGS) $(DEPS) -- *.c
Add Comment
Please, Sign In to add comment