summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-09-05 11:18:52 +0200
committerOskar <[email protected]>2024-09-05 11:18:52 +0200
commitd2f183b8d0008bdb29e6c5c4fa04c14d7525ca9b (patch)
treed1ab4ddc3cea4214ffdb8f574a85283545b372f8 /Makefile
parenta30d605024322ada2206d10898b8dfd6220107c1 (diff)
more
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 17 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4648bd7..259e0a6 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ OBJS_CLANG=$(patsubst %.cpp, $(BINDIR)/clang/%, $(SRCS))
OBJS_GCC=$(patsubst %.cpp, $(BINDIR)/gcc/%, $(SRCS))
MAKEFLAGS += -j$(nproc)
-all: clang gcc
+all: clang gcc ch6e9
clean:
rm -rf $(BINDIR)/gcc/*
@@ -26,4 +26,20 @@ $(BINDIR)/gcc/%: %.cpp
@mkdir -p $(BINDIR)/gcc
$(CC2) $(CFLAGS_GCC) -o $@ $<
+ch6e9: $(BINDIR)/clang/FACT $(BINDIR)/gcc/FACT
+
+$(BINDIR)/clang/FACT: fact.o factMain.o
+ @mkdir -p $(BINDIR)/clang
+ $(CC1) $(CFLAGS_CLANG) factMain.o fact.o -o $(BINDIR)/clang/FACT
+
+$(BINDIR)/gcc/FACT: fact.o factMain.o
+ @mkdir -p $(BINDIR)/gcc
+ $(CC2) $(CFLAGS_GCC) factMain.o fact.o -o $(BINDIR)/gcc/FACT
+
+fact.o: fact.cc
+ $(CC2) $(CFLAGS_GCC) -c fact.cc
+
+factMain.o: factMain.cc
+ $(CC2) $(CFLAGS_GCC) -c factMain.cc
+
.PHONY: all clean clang gcc