Small changes to make clean
This commit is contained in:
parent
689408ffe9
commit
ffb226cbee
3 changed files with 17 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -1,9 +1,11 @@
|
|||
all:
|
||||
cd repo; make all;
|
||||
cd cmd; make all;
|
||||
cd commands; make all;
|
||||
cd test; make all;
|
||||
|
||||
clean:
|
||||
cd repo; make clean;
|
||||
cd cmd; make clean;
|
||||
cd commands; make clean;
|
||||
cd test; make clean;
|
13
commands/Makefile
Normal file
13
commands/Makefile
Normal file
|
@ -0,0 +1,13 @@
|
|||
CC = gcc
|
||||
CFLAGS = -O0
|
||||
LFLAGS =
|
||||
DEPS = argument.h command.h
|
||||
OBJS = argument.o
|
||||
|
||||
%.o: %.c $(DEPS)
|
||||
$(CC) -c -o $@ $< $(CFLAGS)
|
||||
|
||||
all: $(OBJS)
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
|
@ -14,3 +14,4 @@ all: testit
|
|||
|
||||
clean:
|
||||
rm -f *.o
|
||||
rm -f testit
|
Loading…
Reference in a new issue