-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
77 lines (63 loc) · 1.8 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
################################################################################
# Automatically-generated file. Do not edit!
################################################################################
#-include ../makefile.init
CC_OPTIMIZE := -O3 -fomit-frame-pointer -fopenmp -march=native -mtune=native -ffast-math -msse -mrecip -mfpmath=sse -mssse3 -Wall -c -fmessage-length=0 -flto
#CC_OPTIMIZE := -g -O1 -fopenmp -ffast-math -c -fmessage-length=0
RM := rm -rf
# All of the sources participating in the build are defined here
-include sources.mk
-include subdir.mk
-include rtengine/subdir.mk
-include simplegui/subdir.mk
-include objects.mk
ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C++_DEPS)),)
-include $(C++_DEPS)
endif
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
ifneq ($(strip $(CC_DEPS)),)
-include $(CC_DEPS)
endif
ifneq ($(strip $(CPP_DEPS)),)
-include $(CPP_DEPS)
endif
ifneq ($(strip $(CXX_DEPS)),)
-include $(CXX_DEPS)
endif
ifneq ($(strip $(C_UPPER_DEPS)),)
-include $(C_UPPER_DEPS)
endif
endif
#-include ../makefile.defs
# Add inputs and outputs from these tool invocations to the build variables
# All Target
all: rtviewer plugins
# Tool invocations
rtviewer: $(OBJS) $(USER_OBJS)
@echo 'Building target: $@'
@echo 'Invoking: GCC C++ Linker'
g++ -O3 -flto -rdynamic -o "rtviewer" $(OBJS) $(USER_OBJS) $(LIBS)
mkdir -p ~/bin
cp rtviewer ~/bin/view_raw
@echo 'Finished building target: $@'
@echo ' '
$(MAKE) --no-print-directory post-build
plugins:
@echo 'Building plugins'
cd rtengine/plugins/ && make
@echo 'ok'
# Other Targets
clean:
-$(RM) $(OBJS) rtviewer
-@echo ' '
cd rtengine/plugins/ && make clean
post-build:
-@echo 'install library'
#cd rtengine/plugins/ && make
-@echo ' '
.PHONY: all clean dependents
.SECONDARY: post-build
#-include ../makefile.targets