Rework Makefile dependencies
This commit is contained in:
parent
087082ef08
commit
ad33c94c6f
|
@ -21,14 +21,14 @@ all: $(BIN_DIR) ip_data.c $(TARGET)
|
|||
$(BIN_DIR):
|
||||
@mkdir $(BIN_DIR)
|
||||
|
||||
ip_data.c:
|
||||
ip_data.c: $(BIN_DIR)
|
||||
make -C ../data
|
||||
|
||||
cmdline.c: cmdline.ggo
|
||||
gengetopt --input $^
|
||||
|
||||
$(TARGET): $(SRCS)
|
||||
gcc $(CFLAGS) $^ $(LDFLAGS) -o $@
|
||||
$(TARGET): ip_data.c $(SRCS)
|
||||
gcc $(CFLAGS) $(SRCS) $(LDFLAGS) -o $@
|
||||
|
||||
clean:
|
||||
rm -f *~ $(TARGET)
|
||||
|
|
Loading…
Reference in New Issue
Block a user