diff options
| Commit | dbe9285608507c592fede216f2c147c5a3d40cea (patch) | |
|---|---|---|
| Author | 2020-12-23 14:55:13 +0200 | |
| Committer | 2020-12-23 14:55:13 +0200 | |
| Files | 426a1466b7cf50ae4f1ebbfdefa27287c6d318d6 /Makefile | |
| IPL-dbe9285608507c592fede216f2c147c5a3d40cea.tar IPL-dbe9285608507c592fede216f2c147c5a3d40cea.tar.gz IPL-dbe9285608507c592fede216f2c147c5a3d40cea.zip | ||
Squashed 'gctest/minitrace/' content from commit f4dc532
git-subtree-dir: gctest/minitrace
git-subtree-split: f4dc5329360a7a07959285c50f31025a12ae3a14
1 files changed, 30 insertions, 0 deletions
| -rw-r--r-- | Makefile | 30 |
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f6c2677 --- /dev/null +++ b/Makefile @@ -0,0 +1,30 @@ +CC=gcc +CXX=g++ + +INCLUDE=-I. +FLAGS=-Wall -W -O2 -DMTR_ENABLED + +CFLAGS=$(INCLUDE) $(FLAGS) +CXXFLAGS=$(INCLUDE) $(FLAGS) +LDFLAGS=-lm + +DEPS=minitrace.h +OBJS=minitrace.o minitrace_test.o +OBJS2=minitrace.o minitrace_test_mt.o + +%.o: %.c $(DEPS) + $(CC) -c -o $@ $< $(CFLAGS) + +%.o: %.cpp $(DEPS) + $(CXX) -c -o $@ $< $(CXXFLAGS) + +all: minitrace_test minitrace_test_mt + +minitrace_test: $(OBJS) + $(CXX) -o $@ $^ ${CFLAGS} + +minitrace_test_mt: $(OBJS2) + $(CXX) -o $@ $^ -lpthread ${LDFLAGS} + +clean: + rm -f *.o *.d minitrace_test minitrace_test_mt |
