Mercurial > garten
diff Makefile @ 12:8db6497d6065
merged everything to only one program
author | meillo@marmaro.de |
---|---|
date | Wed, 23 Jul 2008 15:19:45 +0200 |
parents | 13c6828bd4a5 |
children | bbc214c6fa6f |
line wrap: on
line diff
--- a/Makefile Wed Jul 23 11:41:38 2008 +0200 +++ b/Makefile Wed Jul 23 15:19:45 2008 +0200 @@ -22,6 +22,8 @@ # files DEP = db.h game.h +SRC = main.c clock.c environment.c weather.c growth.c db.c +OBJ = $(SRC:.c=.o) .PHONY: all @@ -40,20 +42,11 @@ .PHONY: build build: options ${NAME} -bin/clock: clock.c $(DEP) - $(CC) -o $@ $(LDFLAGS) clock.c -bin/weather: weather.c $(DEP) - $(CC) -o $@ $(LDFLAGS) weather.c +$(OBJ): $(SRC) $(DEP) -bin/environment: environment.c $(DEP) - $(CC) -o $@ $(LDFLAGS) environment.c - -bin/growth: growth.c $(DEP) - $(CC) -o $@ $(LDFLAGS) growth.c - - -${NAME}: bin/clock bin/weather bin/environment bin/growth +${NAME}: $(DEP) $(OBJ) + gcc -o $(NAME) $(LDFLAGS) $(OBJ) .PHONY: car @@ -63,7 +56,7 @@ .PHONY: strip strip: ${NAME} @echo stripping - @strip bin/* + @strip * .PHONY: changelog @@ -75,7 +68,7 @@ .PHONY: clean clean: rm -f *.o - rm -f bin/* + rm -f * #dist: build changelog