aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index be6bdb9..40843c6 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -23,12 +23,12 @@ ECGEN_OBJ = $(patsubst %.c,%.o, $(ECGEN_SRC))
ECONVERT_SRC = econvert.c $(wildcard */*.c)
ECONVERT_OBJ = $(patsubst %.c,%.o, $(ECONVERT_SRC))
-SRC = $(ECGEN_SRC) $(ECONVERT_SRC)
+SRC = $(wildcard *.c) $(wildcard */*.c)
HDR = $(wildcard */*.h)
####
-all: ecgen
+all: ecgen econvert
ecgen: ecgen.o $(ECGEN_OBJ)
$(CC) $(CFLAGS) $(INCLUDES) -o $@ $^ $(LDFLAGS) $(LIBS)
@@ -44,6 +44,8 @@ econvert: econvert.o $(ECONVERT_OBJ)
####
clean-all: clean
+ rm ../ecgen
+ rm ../econvert
clean:
find . -type f -name '*.o' -exec rm {} +