From de0ee3187c8fffb52327f9a5680a3eafea872276 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 26 Mar 2004 15:19:11 +0000 Subject: New Makefile system --- progs/miniglx/Makefile | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 progs/miniglx/Makefile (limited to 'progs/miniglx') 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 -- cgit v1.2.3