Prevented compilation through object file.
authorshort <>
Tue, 5 Dec 2000 15:53:18 +0000 (15:53 +0000)
committershort <>
Tue, 5 Dec 2000 15:53:18 +0000 (15:53 +0000)
Now it respects specified CFLAGS during compilation.

Makefile

index c217400..c02e21e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,9 +2,8 @@ CFLAGS=-O2 -ggdb -Wall -pedantic -ansi -D_GNU_SOURCE
 
 all: timeplan
 
-timeplan: timeplan.o
-
-timeplan.o: timeplan.c
+timeplan: timeplan.c
+       $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) $(LOADLIBES) $(LDLIBS) -o $@ $<
 
 .PHONY: clean
 clean: