-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
25 lines (18 loc) · 873 Bytes
/
Makefile
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
CC := ../spcomp64
INCLUDE := -i scripting -i scripting/include -i sm-ripext/pawn/scripting/include
SRCS := gflbans
SRC_FILES := $(addprefix scripting/, $(addsuffix .sp, $(SRCS)))
DEPS :=
CC_FLAGS :=
TEST_FLAGS := -w203 -w204
gflbans: $(SRC_FILES) $(DEPS)
$(CC) $(CC_FLAGS) $(SRC_FILES) $(INCLUDE) -o compiled/gflbans.smx
test_utils: $(SRC_FILES)
$(CC) $(CC_FLAGS) $(TEST_FLAGS) test/gflbans_test_utils.sp scripting/gflbans/utils.sp $(INCLUDE) -o compiled/tests/gflbans_test_utils.smx
test_infractions: $(SRC_FILES)
$(CC) $(CC_FLAGS) $(TEST_FLAGS) test/init_globals.sp test/gflbans_test_infractions.sp scripting/gflbans/infractions.sp scripting/gflbans/log.sp test/api_mocks.sp scripting/gflbans/utils.sp $(INCLUDE) -o compiled/tests/gflbans_test_infractions.smx
tests: test_utils test_infractions
.PHONY: all clean
all: gflbans tests
clean:
rm -f $(COMPILED)