-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
18 lines (14 loc) · 849 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# #########################
# # DIRAC ENGINE MAKEFILE #
# #########################
CC := g++ # c compiler
SRC_ALL := src/*.cpp # all dirac src files + main src file
SRC_MAIN := src/main.cpp # main src file
SRC_DIRAC := $(filter-out $(SRC_MAIN), $(SRC_ALL)) # all dirac src files
DLL := bin/dirac.dll # dynimic link library file
EXE_MAIN := bin/main # executable file
dirac:
$(CC) --shared -o $(DLL) $(SRC_DIRAC)
exe:
$(CC) -o $(EXE_MAIN) $(SRC_MAIN) $(DLL)
all: dirac exe