-
Notifications
You must be signed in to change notification settings - Fork 3
/
test.mk
30 lines (24 loc) · 871 Bytes
/
test.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
TARGET := test
SRCDIR := test
BUILDDIR := bin
OBJDIR := bin/obj
C_SRCS := $(wildcard $(SRCDIR)/*.c)
CXX_SRCS := $(wildcard $(SRCDIR)/*.cpp)
INCLUDE_DIRS := include
LIBRARY_DIRS :=
LIBRARIES := buntils rt pthread
CPPFLAGS += -std=c++20 -pthread -DLIBICONV_PLUG -Wall -Wshadow -Wno-attributes -Wno-unknown-pragmas -Wno-reorder -Wno-missing-braces -Wno-unused-function -Wno-comment -Wno-char-subscripts -Wno-sign-compare -Wno-unused-variable -Wno-switch -fsanitize=signed-integer-overflow -fuse-ld=gold -Wno-class-memaccess
LDFLAGS += -L./bin/
include base.mk
PRECOMPILE:
$(COMPILE.cpp) $(SRCDIR)/test.h -o $(SRCDIR)/test.h.gch
$(OBJS): PRECOMPILE
distclean:
@- $(RM) $(OBJS)
@- $(RM) -r $(OBJDIR)
@- $(RM) bin/*.txt
@- $(RM) bin/*.ini
@- $(RM) bin/*.json
@- $(RM) bin/*.ubj
@- $(RM) bin/*.xml
@- $(RM) $(SRCDIR)/test.h.gch