diff --git a/Makefile b/Makefile index 5ed0fe5..a018366 100644 --- a/Makefile +++ b/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; \ No newline at end of file diff --git a/commands/Makefile b/commands/Makefile new file mode 100644 index 0000000..e884642 --- /dev/null +++ b/commands/Makefile @@ -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 \ No newline at end of file diff --git a/test/Makefile b/test/Makefile index a39e929..3cf109a 100644 --- a/test/Makefile +++ b/test/Makefile @@ -13,4 +13,5 @@ testit: $(OBJS) all: testit clean: - rm -f *.o \ No newline at end of file + rm -f *.o + rm -f testit \ No newline at end of file