diff options
author | Oskar <[email protected]> | 2024-09-05 11:18:52 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-09-05 11:18:52 +0200 |
commit | d2f183b8d0008bdb29e6c5c4fa04c14d7525ca9b (patch) | |
tree | d1ab4ddc3cea4214ffdb8f574a85283545b372f8 /Makefile | |
parent | a30d605024322ada2206d10898b8dfd6220107c1 (diff) |
more
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -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 |