diff options
author | Brian Paul <[email protected]> | 2004-03-26 15:19:11 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2004-03-26 15:19:11 +0000 |
commit | de0ee3187c8fffb52327f9a5680a3eafea872276 (patch) | |
tree | 69ca2969c64ddd79910f0783639d4c7bd65df792 /progs/miniglx | |
parent | a70ad91209b08ebe7122ace6d6656b11d9b04542 (diff) |
New Makefile system
Diffstat (limited to 'progs/miniglx')
-rw-r--r-- | progs/miniglx/Makefile | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/progs/miniglx/Makefile b/progs/miniglx/Makefile new file mode 100644 index 00000000000..6e6b0a85486 --- /dev/null +++ b/progs/miniglx/Makefile @@ -0,0 +1,58 @@ +# Makefile for miniglx demo programs + +TOP = ../.. + +include $(TOP)/configs/current + + +SOURCES = miniglxtest.c \ + miniglxsample.c \ + sample_server.c \ + sample_server2.c \ + manytex.c \ + texline.c + +OBJECTS = $(SOURCES:.c=.o) + +PROGS = $(SOURCES:%.c=%) + +INCLUDES = \ + -I. \ + -I$(TOP)/include + + +##### RULES ##### + +.SUFFIXES: +.SUFFIXES: .c + +.c: + $(CC) $(INCLUDES) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@ + +.c.o: + $(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@ + +.S.o: + $(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@ + + +##### TARGETS ##### + +default: depend $(PROGS) + +clean: + rm -f $(PROGS) + rm -f *.o + + +depend: $(SOURCES) + touch depend + makedepend -fdepend -Y $(INCLUDES) $(SOURCES) >& /dev/null + + +# Emacs tags +tags: + etags `find . -name \*.[ch]` `find ../include` + + +include depend |