[model] Add include dep to Makefile
This commit is contained in:
parent
26680c771c
commit
08370b3262
@ -17,7 +17,7 @@ CFLAGS = -Wall -pedantic -Wshadow -ggdb -O2 -Wimplicit -Wreturn-type -Wuninitial
|
|||||||
LDFLAGS = -lpthread
|
LDFLAGS = -lpthread
|
||||||
|
|
||||||
SRC=$(wildcard *.c)
|
SRC=$(wildcard *.c)
|
||||||
|
INCLUDES=$(wildcard *.h)
|
||||||
#######################
|
#######################
|
||||||
# Tâches
|
# Tâches
|
||||||
#######################
|
#######################
|
||||||
@ -30,8 +30,8 @@ all: $(APPNAME)
|
|||||||
$(APPNAME): $(OBJS)
|
$(APPNAME): $(OBJS)
|
||||||
$(CC) -o $@ $(OBJS) $(LDFLAGS)
|
$(CC) -o $@ $(OBJS) $(LDFLAGS)
|
||||||
|
|
||||||
%.o : %.c
|
%.o : %.c $(INCLUDES)
|
||||||
$(CC) $(CFLAGS) $(INCLUDES) $(CCOPT) -o $@ -c $<
|
$(CC) $(CFLAGS) $(CCOPT) -o $@ -c $<
|
||||||
|
|
||||||
clean :
|
clean :
|
||||||
-rm -f *.o *.a $(APPNAME)
|
-rm -f *.o *.a $(APPNAME)
|
||||||
|
Loading…
Reference in New Issue
Block a user