# List of sources SRCS = example_1.c example_2.c example_3.c MSRCS= visual.c misc.c cache.c debug_menu.c # List of object files OBJS = example_1.o example_2.o example_3.o MOBJS= visual.o misc.o cache.o debug_menu.o # Targets to make EXAMPLES=example_1 example_2 example_3 # The library XMHTMLINC= -I../src XMHTMLLIB= -L../src -lXmHTML # rule to create .o files from .c files .c.o: $(RM) $@ $(CC) $(CFLAGS) $(CPPFLAGS) $(XMHTMLINC) $(INCLUDES) -c $< all: $(EXAMPLES) # targets to build example_1:: ../src/libXmHTML.a example_1.o $(RM) $@ \ $(CC) -o $@ $(LDFLAGS) example_1.o $(XMHTMLLIB) $(LOADLIBES) example_2:: ../src/libXmHTML.a example_2.o $(MOBJS) $(RM) $@ \ $(CC) -o $@ $(LDFLAGS) example_2.o $(MOBJS) $(XMHTMLLIB) $(LOADLIBES) example_3:: ../src/libXmHTML.a example_3.o $(RM) $@ \ $(CC) -o $@ $(LDFLAGS) example_3.o $(XMHTMLLIB) $(LOADLIBES) .PHONY: ../src/libXmHTML.a depend:: $(SRCS) $(MSRCS) $(MAKEDEPEND) $(XMHTMLINC) $(INCLUDES) $(CPPFLAGS) $(SRCS) $(MSRCS) clean:: $(RM) $(OBJS) $(MOBJS) $(RM) $(EXAMPLES) distclean:: clean $(RM) core *.out *.log make.world *.bak *.last *.auto *.rej *.orig $(CP) Makefile.org Makefile #-------------------------------------------------------------------------- # don't delete anything below this line, makedepend depends on it #--------------------------------------------------------------------------