makefile
1.78 KB
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
55
56
57
58
59
60
61
62
################################################################################
# Automatically-generated file. Do not edit!
################################################################################
-include ../makefile.init
RM := rm -rf
# All of the sources participating in the build are defined here
-include sources.mk
-include src/utils/flatzinc/subdir.mk
-include src/utils/subdir.mk
-include src/kernels/subdir.mk
-include src/csps/subdir.mk
-include src/constraints/subdir.mk
-include src/subdir.mk
-include subdir.mk
-include objects.mk
ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
endif
-include ../makefile.defs
# Add inputs and outputs from these tool invocations to the build variables
# All Target
all:
$(MAKE) --no-print-directory pre-build
$(MAKE) --no-print-directory main-build
# Main-build Target
main-build: PHACT
# Tool invocations
PHACT: $(OBJS) $(USER_OBJS)
@echo 'Building target: $@'
@echo 'Invoking: GCC C Linker'
gcc -L/usr/local/cuda-10.1/lib64 -pthread -o "PHACT" $(OBJS) $(USER_OBJS) $(LIBS)
@echo 'Finished building target: $@'
@echo ' '
$(MAKE) --no-print-directory post-build
# Other Targets
clean:
-$(RM) $(EXECUTABLES)$(OBJS)$(C_DEPS) PHACT
-@echo ' '
pre-build:
-rm -rf src/*.c src/*.h src/*.txt src/*.cl src/utils/pthread_win32/* src/constraints/*.c src/constraints/*.h src/csps/*.c src/csps/*.h src/csps/*.mzn src/csps/*.dzn src/csps/*.fzn src/kernels/*.c src/kernels/*.h src/kernels/*.cl src/utils/*.c src/utils/*.h src/utils/pthread_win32/* && rm -rf ~/.nv && make -C ../src/utils/flatzinc/ clean && make -C ../src/utils/flatzinc/ all && cp -rf ../src/. src/
-@echo ' '
post-build:
-cp -rf ../src/. src/
-@echo ' '
.PHONY: all clean dependents main-build pre-build post-build
-include ../makefile.targets