-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgather.make
27 lines (20 loc) · 992 Bytes
/
gather.make
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
# Gather Objects for Different Cases
CORESRC:=$(wildcard src/core/*.cpp)
COREOBJ:=$(filter-out src/core/main.o,$(subst .cpp,.o, $(CORESRC)))
AGSRC:=$(wildcard src/atomgroup/*.cpp)
AGOBJ:=$(filter-out src/atomgroup/main.o,$(subst .cpp,.o, $(AGSRC)))
READERSRC:=$(wildcard src/reader/*.cpp)
READEROBJ:=$(filter-out src/reader/main.o,$(subst .cpp,.o, $(READERSRC)))
ifeq ($(MAKE_XML),false)
READEROBJ:=$(filter-out src/reader/xmlReader.o,$(READEROBJ))
endif
WRITERSRC:=$(wildcard src/writer/*.cpp)
WRITEROBJ:=$(filter-out src/writer/main.o,$(subst .cpp,.o, $(WRITERSRC)))
FILESRC:=$(wildcard src/file/*.cpp)
FILEOBJ:=$(filter-out src/file/main.o,$(subst .cpp,.o, $(FILESRC)))
UTILSRC:=$(wildcard src/util/*.cpp)
UTILOBJ:=$(filter-out src/util/main.o,$(subst .cpp,.o, $(UTILSRC)))
KERNSRC:=$(wildcard src/kernel/*.cpp)
KERNOBJ:=$(filter-out src/kernel/main.o,$(subst .cpp,.o, $(KERNSRC)))
CUDASRC:=$(wildcard src/cu/*.cu)
CUDAOBJ:=$(filter-out src/cu/main.o,$(subst .cpp,.o, $(CUDASRC)))