stop cleaning object files on build
This commit is contained in:
parent
85eb489d7c
commit
bfcf6fa157
1 changed files with 3 additions and 6 deletions
9
Makefile
9
Makefile
|
@ -15,9 +15,9 @@ TEMPMOD = $(wildcard modules/*.c)
|
|||
MOD = $(TEMPMOD:modules/%=%)
|
||||
PROGRAM = modfetch
|
||||
|
||||
.PHONY: all clean distclean
|
||||
.PHONY: all clean
|
||||
|
||||
all: dirs $(PROGRAM) distclean
|
||||
all: dirs modules $(PROGRAM)
|
||||
|
||||
modules: dirs $(MOD:.c=.so)
|
||||
|
||||
|
@ -36,8 +36,5 @@ $(BIN)/%.o: %.c
|
|||
%.so: modules/%.c
|
||||
$(CC) -o $(BIN)/$@ $^ -shared -fPIC $(CFLAGS)
|
||||
|
||||
clean: distclean
|
||||
clean:
|
||||
rm -rf $(BIN)
|
||||
|
||||
distclean:
|
||||
rm -rf $(OBJ)
|
||||
|
|
Loading…
Reference in a new issue