Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=yaxmenu.git;a=commitdiff;h=44b2eabdd672fb1e25ee8d84941273f56b719141
commit 44b2eabdd672fb1e25ee8d84941273f56b719141 Author: James Buren <r...@frugalware.org> Date: Sun Dec 6 11:26:41 2009 -0600 Makefile * update for new source diff --git a/src/Makefile b/src/Makefile index 11aa583..3e39912 100644 --- a/src/Makefile +++ b/src/Makefile @@ -18,19 +18,14 @@ endif # define program variables PROGRAM = yaxmenu +SOURCES = $(shell echo *.c) +OBJECTS = $(SOURCES:.c=.o) -CFLAGS += $(shell pkg-config --cflags gtk+-2.0) +$(PROGRAM) : $(OBJECTS) + $(CC) $(LDFLAGS) $(OBJECTS) -o $(PROGRAM) -LDFLAGS += $(shell pkg-config --libs gtk+-2.0) - -${PROGRAM} : options.o main.o - ${CC} ${LDFLAGS} options.o main.o -o ${PROGRAM} - -options.o : options.c - ${CC} ${CFLAGS} -c options.c - -main.o : main.c - ${CC} ${CFLAGS} -c main.c +$(OBJECTS) : %.o : %.c + $(CC) $(CFLAGS) -c $< -o $@ clean: - ${RM} options.o main.o ${PROGRAM} + $(RM) $(OBJECTS) $(PROGRAM) _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git