fixed error in Makefile
authormatthew <matthew@owens.tech>
Sun, 29 Jul 2018 19:13:21 +0000 (19:13 +0000)
committermatthew <matthew@owens.tech>
Sun, 29 Jul 2018 19:13:21 +0000 (19:13 +0000)
Makefile

index 130724a..e2191e1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -32,14 +32,14 @@ $(GL_TARGET): $(COMMON_OBJECTS) $(GL_OBJECTS)
 $(NOGL_TARGET): $(COMMON_OBJECTS) $(NOGL_OBJECTS)
        $(CC) $(COMMON_OBJECTS) $(NOGL_OBJECTS) -Wall $(LIBS) -o $@
 
-common/%.o: $(COMMON_SRCS)
-       $(CC) $(CFLAGS) -c $< -o $@
+common/%.o: common/%.c
+       $(CC) $(CFLAGS) -c $^ -o $@
 
-nogl/%.o: $(NOGL_SRCS)
-       $(CC) $(CFLAGS) -c $< -o $@
+nogl/%.o: nogl/%.c
+       $(CC) $(CFLAGS) -c $^ -o $@
 
-gl/%.o: $(GL_SRCS)
-       $(CC) $(CFLAGS) -c $< -o $@
+gl/%.o: gl/%.c
+       $(CC) $(CFLAGS) -c $^ -o $@
 
 clean:
        rm -f gl/*.o