Browse Source

[model] Add include dep to Makefile

master
Mathieu Maret 10 years ago
parent
commit
b9338c850d
  1. 6
      models/Makefile

6
models/Makefile

@ -17,7 +17,7 @@ CFLAGS = -Wall -pedantic -Wshadow -ggdb -O2 -Wimplicit -Wreturn-type -Wuninitial
LDFLAGS = -lpthread
SRC=$(wildcard *.c)
INCLUDES=$(wildcard *.h)
#######################
# Tâches
#######################
@ -30,8 +30,8 @@ all: $(APPNAME)
$(APPNAME): $(OBJS)
$(CC) -o $@ $(OBJS) $(LDFLAGS)
%.o : %.c
$(CC) $(CFLAGS) $(INCLUDES) $(CCOPT) -o $@ -c $<
%.o : %.c $(INCLUDES)
$(CC) $(CFLAGS) $(CCOPT) -o $@ -c $<
clean :
-rm -f *.o *.a $(APPNAME)

Loading…
Cancel
Save