-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathMakefile
55 lines (42 loc) · 1.85 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#######################################################
# Include standard variables
#######################################################
include $(HTR_DIR)/Makefile.in
######################################################
# Rules
######################################################
.PHONY: default all clean force
default: laserTest.exec
######################################################
# Objects
######################################################
MODULES= $(HTR_DIR)/src/prometeo_mixture.rg \
$(HTR_DIR)/src/prometeo_metric.rg \
$(HTR_DIR)/src/prometeo_partitioner.rg \
$(HTR_DIR)/src/prometeo_laser.rg \
$(HTR_DIR)/src/prometeo_IO.rg \
$(HTR_DIR)/src/prometeo_probe.rg \
$(HTR_DIR)/src/prometeo_average.rg
######################################################
# Recipes
######################################################
clean:
$(RM) *.exec *.o *.a
laserTest.exec: laserTest.o registrar.o libtest.a
$(CXX) -o $@ $^ $(LINK_FLAGS)
laserTest.o: laserTest.rg $(HTR_DIR)/src/config_schema.h $(HTR_DIR)/src/Utils/util.rg $(MODULES)
EOS="FFCM1Mix" $(REGENT) $(REGENT_OPTS) laserTest.rg $(REGENT_FLAGS)
libtest.a: $(HTR_DIR)/src/prometeo_FFCM1Mix_cpu.a \
$(if $(filter $(strip $(USE_CUDA)), 1), $(HTR_DIR)/src/prometeo_FFCM1Mix_gpu.a)
$(AR) rcT $@ $^
registrar.o: registrar.cc registrar.h $(HTR_DIR)/src/prometeo_mixture.h
$(call getRecipe)
$(CXX) $(CXX_FLAGS) -c -o $@ $<
$(HTR_DIR)/src/prometeo_FFCM1Mix_cpu.a: force
$(MAKE) -C $(HTR_DIR)/src prometeo_FFCM1Mix_cpu.a
$(HTR_DIR)/src/prometeo_FFCM1Mix_gpu.a: force
$(MAKE) -C $(HTR_DIR)/src prometeo_FFCM1Mix_gpu.a
$(HTR_DIR)/src/config_schema.o $(HTR_DIR)/src/config_schema.h: $(HTR_DIR)/src/Utils/process_schema.rg $(HTR_DIR)/src/config_schema.lua
$(MAKE) -C $(HTR_DIR)/src config_schema.o
json.o json.h: $(HTR_DIR)/src/json.c $(HTR_DIR)/src/json.h
$(MAKE) -C $(HTR_DIR)/src json.o