summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-09-26 23:39:48 +0300
committerJari Vetoniemi <mailroxas@gmail.com>2018-09-26 23:39:48 +0300
commit4678de15e3f81358e8652ed3054216dc6a5eef5c (patch)
treefad4bcad622e4b294e3d7b1b33c8a3dbc1680a44
parent4cdf3d58e832708671c734de56e0e08496593c61 (diff)
make: fix colm deps
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f3cc93a..b82ea95 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ bins = fspec-info dec2bin xidec xi2path xils xifile uneaf
all: $(bins)
%.c: %.lm
- colm $(COLMFLAGS) -c $^
+ colm $(COLMFLAGS) -c $<
%.c: %.rl
ragel $^
@@ -27,10 +27,11 @@ all: $(bins)
$(bins): %:
$(LINK.c) $(filter %.c %.a,$^) $(LDLIBS) -o $@
+src/compiler/compiler.c: src/compiler/expr.lm src/compiler/types.lm
fspec-compiler-native.a: private CFLAGS = -Wno-unusued-parameter
fspec-compiler-native.a: src/compiler/native.c
fspec-compiler.a: private CFLAGS = -std=c11
-fspec-compiler.a: src/compiler/compiler.c src/compiler/expr.lm src/compiler/types.lm fspec-compiler-native.a
+fspec-compiler.a: src/compiler/compiler.c fspec-compiler-native.a
fspec-info: private LDLIBS += -lcolm
fspec-info: src/bin/fspec-info.c fspec-compiler.a fspec-compiler-native.a