From: Christian Heller Date: Wed, 19 Jun 2013 03:08:08 +0000 (+0200) Subject: Makefile now works on all .c files to generate its list of needed object files. X-Git-Tag: tce~1213 X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/%7B%7Byoutube_prefix%7D%7D%7B%7Bvideo_data.id_%7D%7D?a=commitdiff_plain;h=e4208c726efd55a3a5ff2be966d3fbd7d38ba9e3;p=plomrogue Makefile now works on all .c files to generate its list of needed object files. --- diff --git a/Makefile b/Makefile index 3c25ff9..bedecc0 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ CC=cc CFLAGS=-Wall -g TARGET=roguelike -OBJECTS=windows.o draw_wins.o keybindings.o readwrite.o roguelike.o +SOURCES=$(shell find . -type f -name \*.c) +OBJECTS=$(SOURCES:.c=.o) roguelike: $(OBJECTS) $(CC) $(CFLAGS) -o roguelike $(OBJECTS) -lncurses