Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Compiler flags: all warnings + debugger meta-data
- CFLAGS = -Wall -g -I/usr/local/include -L/usr/local/lib
- # External libraries: math and xlib
- LIBS = -lm -lX11
- # Pre-defined macros for conditional compilation
- DEFS = -DDEBUG_FLAG -DEXPERIMANTAL=0
- # The final executable program file, i.e. name of the program
- BIN = xlibtest
- # Object files from which $BIN depends
- # OBJS = xlibtest.o
- # This default rule compiles the executable program
- $(BIN): $(BIN).c
- $(CC) $(CFLAGS) $(DEFS) $(LIBS) $(BIN).c -o $(BIN)
- # This rule compiles each module into it's object file
- # %.o: %.c %.h
- # $(CC) -c $(CFLAGS) $(DEFS) $< -o $@
- clean:
- rm -f *~ *.o $(BIN)
- check-syntax:
- gcc -o null -S ${CHK_SOURCES} $(CFLAGS)
- depend:
- makedepend -Y -- $(CFLAGS) $(DEPS) -- *.c
Add Comment
Please, Sign In to add comment