summaryrefslogtreecommitdiff
path: root/test/trans.d/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'test/trans.d/Makefile')
-rw-r--r--test/trans.d/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/trans.d/Makefile b/test/trans.d/Makefile
new file mode 100644
index 00000000..b831cd2e
--- /dev/null
+++ b/test/trans.d/Makefile
@@ -0,0 +1,30 @@
+
+include ../colm.mk
+
+all: trans
+
+COLM = $(SUBJECT_BIN)
+COLM_INC = $(SUBJECT_CPPFLAGS)
+COLM_LIB = $(SUBJECT_LDFLAGS)
+
+TRANS_DEPS = $(wildcard *-*.lm)
+
+OBJ = actparams.o trans.o main.o
+
+trans: $(OBJ)
+ g++ -o $@ $(OBJ) $(COLM_LIB) -lcolm
+
+actparams.o: actparams.cc
+ g++ -c $(COLM_INC) -o $@ $<
+
+main.o: main.c
+ gcc -c $(COLM_INC) -o $@ $<
+
+trans.o: trans.c
+ gcc -c $(COLM_INC) -o $@ $<
+
+trans.c: trans.lm $(TRANS_DEPS)
+ $(COLM) -b trans_object -c -o $@ $<
+
+clean:
+ rm -f *.o