makefile 1.78 KB
################################################################################
# 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