]> Pileus Git - lackey/commitdiff
Fix makefile bugs
authorAndy Spencer <andy753421@gmail.com>
Fri, 5 Oct 2012 06:26:28 +0000 (06:26 +0000)
committerAndy Spencer <andy753421@gmail.com>
Fri, 5 Oct 2012 06:26:28 +0000 (06:26 +0000)
makefile

index 90401859f9a326a2baa9d2450551c3306a38813f..8512942fd2a0d8edfae2e4e772d1720d9fb9ac9b 100644 (file)
--- a/makefile
+++ b/makefile
@@ -28,10 +28,10 @@ clean:
 
 # Rules
 $(PROG): $(SOURCES:%=src/%.o) $(VIEWS:%=view/%.o)
-       $(CC) $(CLFAGS) -o $@ $+ $(LDFLAGS)
+       $(CC) $(CFLAGS) -o $@ $+ $(LDFLAGS)
 
 $(TEST): $(TESTS:%=src/%.o) $(VIEWS:%=view/%.o)
-       $(CC) $(CLFAGS) -o $@ $+ $(LDFLAGS)
+       $(CC) $(CFLAGS) -o $@ $+ $(LDFLAGS)
 
-%.o: %.c $(SOURCES:%=%.h) makefile
+%.o: %.c $(SOURCES:%=src/%.h) makefile
        $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<