[fix] makefile: add listdir include
This commit is contained in:
1 parent
5bdb030587
commit
4b2b3a7e2b
1 file changed
+6
-4
@@ -27,20 +27,22 @@ PERMSRC_O=$(PERMDIR)/src/permutation_t/permutation_t.o
|
||||
#SRC=$(wildcard **/**/*.c)
|
||||
#OBJ=$(SRC:.c=.o) #$(TOOLSRC_O)
|
||||
|
||||
OBJ=$(DIMSRC_O) $(PERMSRC_O)
|
||||
|
||||
TOPTARGETS := all clean
|
||||
DEP=$(PERMDIR)
|
||||
DEP=$(PERMDIR) $(LISTDIR)
|
||||
|
||||
$(TOPTARGETS): $(DEP)
|
||||
|
||||
all: $(DIMSRC_O)
|
||||
|
||||
|
||||
$(DIMSRC_O) : $(DIMSRC) $(PERMSRC_O)
|
||||
$(CC) -o $@ -c $< $(CFLAGS)
|
||||
|
||||
$(DEP):
|
||||
$(MAKE) -C $@ $(MAKECMDGOALS)
|
||||
|
||||
$(DIMSRC_O) : $(DIMSRC) $(PERMSRC_O)
|
||||
$(CC) -o $@ -c $< $(CFLAGS)
|
||||
|
||||
#$(TOOLSRC_O): $(TOOLSRC)
|
||||
# $(CC) -o $@ -c $< $(CFLAGS)
|
||||
|
||||
|
||||
Reference in new issue
Block a user