Mercurial > hg > syntilista
annotate Makefile.gen @ 279:770d1ea07a49
Add LOGO_SIZE Makefile variable.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 18 Apr 2023 13:43:35 +0300 |
parents | d1f34cbc306e |
children | 755fe3f8c08f |
rev | line source |
---|---|
50 | 1 ### |
262 | 2 ### Compiler flags |
50 | 3 ### |
267
2400c2fac4b1
Add Makefile option for building with ASAN.
Matti Hamalainen <ccr@tnsp.org>
parents:
263
diff
changeset
|
4 CFLAGS += -W -Wall -Wextra |
2400c2fac4b1
Add Makefile option for building with ASAN.
Matti Hamalainen <ccr@tnsp.org>
parents:
263
diff
changeset
|
5 CXXFLAGS += -W -Wall -Wextra -std=c++11 |
2400c2fac4b1
Add Makefile option for building with ASAN.
Matti Hamalainen <ccr@tnsp.org>
parents:
263
diff
changeset
|
6 |
2400c2fac4b1
Add Makefile option for building with ASAN.
Matti Hamalainen <ccr@tnsp.org>
parents:
263
diff
changeset
|
7 ifneq ($(ASAN),) |
2400c2fac4b1
Add Makefile option for building with ASAN.
Matti Hamalainen <ccr@tnsp.org>
parents:
263
diff
changeset
|
8 XCFLAGS = -fsanitize=address |
2400c2fac4b1
Add Makefile option for building with ASAN.
Matti Hamalainen <ccr@tnsp.org>
parents:
263
diff
changeset
|
9 LDFLAGS += -lasan |
2400c2fac4b1
Add Makefile option for building with ASAN.
Matti Hamalainen <ccr@tnsp.org>
parents:
263
diff
changeset
|
10 else |
2400c2fac4b1
Add Makefile option for building with ASAN.
Matti Hamalainen <ccr@tnsp.org>
parents:
263
diff
changeset
|
11 XCFLAGS = -O2 |
2400c2fac4b1
Add Makefile option for building with ASAN.
Matti Hamalainen <ccr@tnsp.org>
parents:
263
diff
changeset
|
12 endif |
2400c2fac4b1
Add Makefile option for building with ASAN.
Matti Hamalainen <ccr@tnsp.org>
parents:
263
diff
changeset
|
13 |
2400c2fac4b1
Add Makefile option for building with ASAN.
Matti Hamalainen <ccr@tnsp.org>
parents:
263
diff
changeset
|
14 CFLAGS += $(XCFLAGS) |
2400c2fac4b1
Add Makefile option for building with ASAN.
Matti Hamalainen <ccr@tnsp.org>
parents:
263
diff
changeset
|
15 CXXFLAGS += $(XCFLAGS) |
184
87dfca9f704d
Move optimization and warning CFLAGS and CXXFLAGS to Makefile.gen
Matti Hamalainen <ccr@tnsp.org>
parents:
157
diff
changeset
|
16 |
262 | 17 |
18 ### | |
19 ### Tools, paths and directories | |
20 ### | |
208
e6a2658ae096
Enable building via clang++ (tested with 5.0).
Matti Hamalainen <ccr@tnsp.org>
parents:
192
diff
changeset
|
21 ifneq ($(BINTOOL_PREFIX),) |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
22 CC = $(BINTOOL_PREFIX)gcc |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
23 CXX = $(BINTOOL_PREFIX)g++ |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
24 AR = $(BINTOOL_PREFIX)ar |
208
e6a2658ae096
Enable building via clang++ (tested with 5.0).
Matti Hamalainen <ccr@tnsp.org>
parents:
192
diff
changeset
|
25 endif |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
26 RANLIB = $(BINTOOL_PREFIX)ranlib |
49 | 27 WINDRES = $(BINTOOL_PREFIX)windres |
28 | |
262 | 29 |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
30 INSTALL ?= install |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
31 MKDIR ?= mkdir |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
32 MKDIR_P ?= $(MKDIR) -p |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
33 |
262 | 34 |
35 ### | |
36 ### Main targets and objects | |
37 ### | |
234 | 38 DEFINES += -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG \ |
39 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SQL_LIB \ | |
40 -DQT_CORE_LIB | |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
41 |
50 | 42 # Application stuff |
80
c8fd927cd2c4
Restructure the project by placing source code, images into appropriate
Matti Hamalainen <ccr@tnsp.org>
parents:
76
diff
changeset
|
43 APP_IMG=img/ |
263
f0e180b13e05
More build system improvements.
Matti Hamalainen <ccr@tnsp.org>
parents:
262
diff
changeset
|
44 APP_BIN=$(BINPATH)Syntilista$(BINEXT) |
233 | 45 |
46 APP_HDRS=\ | |
47 src/main.h \ | |
246
43a5e09bb832
Split some utility functions to util.{h,cpp}
Matti Hamalainen <ccr@tnsp.org>
parents:
242
diff
changeset
|
48 src/util.h \ |
233 | 49 src/ui_viewtransactions.h \ |
50 src/ui_mainwindow.h \ | |
51 src/ui_editperson.h \ | |
52 src/ui_aboutwindow.h | |
53 | |
237
54ab3f3e28c0
Split EditPerson and ViewTransactions to separate source files.
Matti Hamalainen <ccr@tnsp.org>
parents:
234
diff
changeset
|
54 APP_OBJS=\ |
54ab3f3e28c0
Split EditPerson and ViewTransactions to separate source files.
Matti Hamalainen <ccr@tnsp.org>
parents:
234
diff
changeset
|
55 main.o \ |
246
43a5e09bb832
Split some utility functions to util.{h,cpp}
Matti Hamalainen <ccr@tnsp.org>
parents:
242
diff
changeset
|
56 util.o \ |
237
54ab3f3e28c0
Split EditPerson and ViewTransactions to separate source files.
Matti Hamalainen <ccr@tnsp.org>
parents:
234
diff
changeset
|
57 editperson.o \ |
54ab3f3e28c0
Split EditPerson and ViewTransactions to separate source files.
Matti Hamalainen <ccr@tnsp.org>
parents:
234
diff
changeset
|
58 viewtransactions.o \ |
242
3d3ba5759cac
Move about-window code to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
238
diff
changeset
|
59 aboutwindow.o \ |
237
54ab3f3e28c0
Split EditPerson and ViewTransactions to separate source files.
Matti Hamalainen <ccr@tnsp.org>
parents:
234
diff
changeset
|
60 sqlmodels.o \ |
54ab3f3e28c0
Split EditPerson and ViewTransactions to separate source files.
Matti Hamalainen <ccr@tnsp.org>
parents:
234
diff
changeset
|
61 printing.o \ |
54ab3f3e28c0
Split EditPerson and ViewTransactions to separate source files.
Matti Hamalainen <ccr@tnsp.org>
parents:
234
diff
changeset
|
62 resources.o \ |
54ab3f3e28c0
Split EditPerson and ViewTransactions to separate source files.
Matti Hamalainen <ccr@tnsp.org>
parents:
234
diff
changeset
|
63 moc_main.o \ |
54ab3f3e28c0
Split EditPerson and ViewTransactions to separate source files.
Matti Hamalainen <ccr@tnsp.org>
parents:
234
diff
changeset
|
64 runguard.o |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
65 |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
66 LOGO_SVG ?= kampuscafe4.svg |
275
d1f34cbc306e
Improve logo/icons intermediate building process.
Matti Hamalainen <ccr@tnsp.org>
parents:
274
diff
changeset
|
67 LOGO_SRC_PNG ?= CafeKampus_logo_FINAL_RGB.png |
d1f34cbc306e
Improve logo/icons intermediate building process.
Matti Hamalainen <ccr@tnsp.org>
parents:
274
diff
changeset
|
68 |
52 | 69 ICON_PNGS = icon-64.png icon-48.png icon-32.png icon-16.png |
275
d1f34cbc306e
Improve logo/icons intermediate building process.
Matti Hamalainen <ccr@tnsp.org>
parents:
274
diff
changeset
|
70 LOGO_PNG = logo.png |
279
770d1ea07a49
Add LOGO_SIZE Makefile variable.
Matti Hamalainen <ccr@tnsp.org>
parents:
275
diff
changeset
|
71 LOGO_SIZE = 256 |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
72 |
275
d1f34cbc306e
Improve logo/icons intermediate building process.
Matti Hamalainen <ccr@tnsp.org>
parents:
274
diff
changeset
|
73 APP_RESOURCES += $(addprefix $(APP_IMG),$(LOGO_PNG) $(ICON_PNGS)) \ |
d1f34cbc306e
Improve logo/icons intermediate building process.
Matti Hamalainen <ccr@tnsp.org>
parents:
274
diff
changeset
|
74 COPYING.html |
d1f34cbc306e
Improve logo/icons intermediate building process.
Matti Hamalainen <ccr@tnsp.org>
parents:
274
diff
changeset
|
75 |
d1f34cbc306e
Improve logo/icons intermediate building process.
Matti Hamalainen <ccr@tnsp.org>
parents:
274
diff
changeset
|
76 DISTCLEAN_TARGETS += $(addprefix $(APP_IMG),$(LOGO_PNG) $(ICON_PNGS)) |
d1f34cbc306e
Improve logo/icons intermediate building process.
Matti Hamalainen <ccr@tnsp.org>
parents:
274
diff
changeset
|
77 |
56 | 78 |
50 | 79 # And target lists |
49 | 80 TARGETS = $(APP_BIN) |
258 | 81 NOBUILD_TARGETS += |
81
810ca71af506
Improve 'clean' target handling.
Matti Hamalainen <ccr@tnsp.org>
parents:
80
diff
changeset
|
82 NOINST_TARGETS += |
233 | 83 CLEAN_TARGETS += icon.ico src/moc_*.cpp src/ui_*.h |
81
810ca71af506
Improve 'clean' target handling.
Matti Hamalainen <ccr@tnsp.org>
parents:
80
diff
changeset
|
84 DISTCLEAN_TARGETS += |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
85 |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
86 |
233 | 87 # Version |
88 APP_VERSION := $(shell cat VERSION) | |
89 comma:= , | |
90 APP_VERSION_COM := $(subst .,$(comma),$(APP_VERSION)) | |
91 CXXFLAGS += -DAPP_VERSION=\"$(APP_VERSION)\" | |
92 | |
93 | |
262 | 94 ### |
95 ### Functions and compilation/link commands | |
96 ### | |
258 | 97 ifneq ($(V),1) |
262 | 98 DO_CMD=/bin/echo -E " $(1) $(2)" && $(3) |
258 | 99 else |
262 | 100 DO_CMD=/bin/echo -E $(3) && $(3) |
258 | 101 endif |
263
f0e180b13e05
More build system improvements.
Matti Hamalainen <ccr@tnsp.org>
parents:
262
diff
changeset
|
102 DO_MKDIR=if test ! -z "$(1)" -a ! -d "$(1)"; then /bin/echo -E " MKDIR $(1)"; mkdir -p "$(1)"; fi |
262 | 103 |
104 | |
105 COMPILE_C_OBJ = \ | |
106 @$(call DO_MKDIR,$(OBJPATH)) ; \ | |
107 $(call DO_CMD,CC,$<,$(CC) $(CFLAGS) $(DM_CFLAGS) -c -o $@ $< $(1)) | |
108 | |
109 LINK_C_BIN = \ | |
110 @$(call DO_MKDIR,$(BINPATH)) ; \ | |
111 $(call DO_CMD,LINK,$@,$(CC) -o $@ $(filter %.o %.a,$+) $(LDFLAGS) $(1)) | |
112 | |
113 COMPILE_CXX_OBJ = \ | |
114 @$(call DO_MKDIR,$(OBJPATH)) ; \ | |
115 $(call DO_CMD,CXX,$<,$(CXX) $(CXXFLAGS) $(DM_CFLAGS) -c -o $@ $< $(1)) | |
116 | |
117 LINK_CXX_BIN = \ | |
118 @$(call DO_MKDIR,$(BINPATH)) ; \ | |
119 $(call DO_CMD,LINK,$@,$(CXX) -o $@ $(filter %.o %.a,$+) $(LDFLAGS) $(1)) | |
120 | |
121 LINK_STATIC_LIB = \ | |
122 @$(call DO_MKDIR,$(OBJPATH)) ; \ | |
123 $(call DO_CMD,AR,$@ $(filter %.o,$+),$(AR) cru $@ $(filter %.o,$+)) ; \ | |
124 $(call DO_CMD,RANLIB,$@,$(RANLIB) $@) | |
258 | 125 |
126 | |
50 | 127 ### |
262 | 128 ### Generic target rules |
50 | 129 ### |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
130 all: $(NOBUILD_TARGETS) $(NOINST_TARGETS) $(TARGETS) |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
131 |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
132 |
50 | 133 moc_predefs.h: |
134 @echo "" > $(OBJPATH)dummy.cpp | |
263
f0e180b13e05
More build system improvements.
Matti Hamalainen <ccr@tnsp.org>
parents:
262
diff
changeset
|
135 @$(call DO_CMD,CXX,$@,$(CXX) $(CXXFLAGS) -dM -E -o $@ $(OBJPATH)dummy.cpp) |
50 | 136 |
137 moc_%.cpp: %.h $(QT_MOC_RULES) | |
263
f0e180b13e05
More build system improvements.
Matti Hamalainen <ccr@tnsp.org>
parents:
262
diff
changeset
|
138 @$(call DO_CMD,Qt:MOC,$@ $<,$(QT_MOC) $(DEFINES) $(QT_MOC_FLAGS) $(INCPATH) $< -o $@) |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
139 |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
140 ui_%.h: %.ui |
263
f0e180b13e05
More build system improvements.
Matti Hamalainen <ccr@tnsp.org>
parents:
262
diff
changeset
|
141 @$(call DO_CMD,Qt:UIC,$@ $<,$(QT_UIC) $(QT_UIC_FLAGS) $< -o $@) |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
142 |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
143 |
233 | 144 $(OBJPATH)%.o: src/%.cpp src/%.h |
268 | 145 $(call COMPILE_CXX_OBJ, $(DEFINES) $(INCPATH)) |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
146 |
233 | 147 $(OBJPATH)%.o: src/%.cpp |
268 | 148 $(call COMPILE_CXX_OBJ, $(DEFINES) $(INCPATH)) |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
149 |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
150 |
50 | 151 ### |
152 ### Windows specific rules | |
153 ### | |
56 | 154 %.rc: %.rc.in icon.ico VERSION |
50 | 155 @sed -e "s/@APP_VERSION@/$(APP_VERSION)/g;s/@APP_VERSION_COM@/$(APP_VERSION_COM)/g;s#@APP_EXE@#$(notdir $(APP_BIN))#g" < $< > $@ |
49 | 156 |
233 | 157 $(OBJPATH)%.o: src/%.rc |
263
f0e180b13e05
More build system improvements.
Matti Hamalainen <ccr@tnsp.org>
parents:
262
diff
changeset
|
158 @$(call DO_CMD,WINDRES,$<,$(WINDRES) $< -O coff -o $@) |
49 | 159 |
160 | |
161 ### | |
162 ### Application rules | |
163 ### | |
275
d1f34cbc306e
Improve logo/icons intermediate building process.
Matti Hamalainen <ccr@tnsp.org>
parents:
274
diff
changeset
|
164 ifneq ($(LOGO_SRC_SVG),) |
d1f34cbc306e
Improve logo/icons intermediate building process.
Matti Hamalainen <ccr@tnsp.org>
parents:
274
diff
changeset
|
165 $(APP_IMG)icon-%.png: $(APP_IMG)$(LOGO_SRC_SVG) |
d1f34cbc306e
Improve logo/icons intermediate building process.
Matti Hamalainen <ccr@tnsp.org>
parents:
274
diff
changeset
|
166 inkscape --export-area-page --export-type=png -w $(patsubst $(APP_IMG)icon-%.png,%,$@) -h $(patsubst $(APP_IMG)icon-%.png,%,$@) --export-filename="$@" "$<" |
192
dfe5e8d7c58a
Use the finalized Cafe Kampus logo.
Matti Hamalainen <ccr@tnsp.org>
parents:
184
diff
changeset
|
167 |
275
d1f34cbc306e
Improve logo/icons intermediate building process.
Matti Hamalainen <ccr@tnsp.org>
parents:
274
diff
changeset
|
168 $(APP_IMG)$(LOGO_PNG): $(APP_IMG)$(LOGO_SRC_SVG) |
279
770d1ea07a49
Add LOGO_SIZE Makefile variable.
Matti Hamalainen <ccr@tnsp.org>
parents:
275
diff
changeset
|
169 inkscape --export-area-page --export-type=png -w $(LOGO_SIZE) -h $(LOGO_SIZE) --export-filename="$@" "$<" |
275
d1f34cbc306e
Improve logo/icons intermediate building process.
Matti Hamalainen <ccr@tnsp.org>
parents:
274
diff
changeset
|
170 else |
d1f34cbc306e
Improve logo/icons intermediate building process.
Matti Hamalainen <ccr@tnsp.org>
parents:
274
diff
changeset
|
171 $(APP_IMG)icon-%.png: $(APP_IMG)$(LOGO_SRC_PNG) |
192
dfe5e8d7c58a
Use the finalized Cafe Kampus logo.
Matti Hamalainen <ccr@tnsp.org>
parents:
184
diff
changeset
|
172 convert "$<" -scale "$(patsubst $(APP_IMG)icon-%.png,%,$@)x$(patsubst $(APP_IMG)icon-%.png,%,$@)" "$@" |
dfe5e8d7c58a
Use the finalized Cafe Kampus logo.
Matti Hamalainen <ccr@tnsp.org>
parents:
184
diff
changeset
|
173 |
275
d1f34cbc306e
Improve logo/icons intermediate building process.
Matti Hamalainen <ccr@tnsp.org>
parents:
274
diff
changeset
|
174 $(APP_IMG)$(LOGO_PNG): $(APP_IMG)$(LOGO_SRC_PNG) |
279
770d1ea07a49
Add LOGO_SIZE Makefile variable.
Matti Hamalainen <ccr@tnsp.org>
parents:
275
diff
changeset
|
175 convert "$<" -scale "$(LOGO_SIZE)x$(LOGO_SIZE)" "$@" |
275
d1f34cbc306e
Improve logo/icons intermediate building process.
Matti Hamalainen <ccr@tnsp.org>
parents:
274
diff
changeset
|
176 endif |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
177 |
80
c8fd927cd2c4
Restructure the project by placing source code, images into appropriate
Matti Hamalainen <ccr@tnsp.org>
parents:
76
diff
changeset
|
178 icon.ico: $(addprefix $(APP_IMG),$(ICON_PNGS)) |
263
f0e180b13e05
More build system improvements.
Matti Hamalainen <ccr@tnsp.org>
parents:
262
diff
changeset
|
179 @$(call DO_CMD,CONVERT,$+ -> $@,convert $+ $@) |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
180 |
233 | 181 src/%.cpp: src/%.qrc $(APP_RESOURCES) |
263
f0e180b13e05
More build system improvements.
Matti Hamalainen <ccr@tnsp.org>
parents:
262
diff
changeset
|
182 @$(call DO_CMD,Qt:RCC,$@ $<,$(QT_RCC) -name "Syntilista" $< -o $@) |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
183 |
233 | 184 $(OBJPATH)main.o: src/main.cpp $(APP_HDRS) VERSION |
268 | 185 $(call COMPILE_CXX_OBJ, $(DEFINES) $(INCPATH)) |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
186 |
52 | 187 $(APP_BIN): $(addprefix $(OBJPATH),$(APP_OBJS)) $(APP_DEP_LIBS) | $(APP_DEPS) |
268 | 188 $(call LINK_CXX_BIN, $(APP_LIBS)) |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
189 |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
190 |
50 | 191 ### |
192 ### Special targets | |
193 ### | |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
194 clean: |
81
810ca71af506
Improve 'clean' target handling.
Matti Hamalainen <ccr@tnsp.org>
parents:
80
diff
changeset
|
195 -$(RM) $(TARGETS) $(NOINST_TARGETS) $(CLEAN_TARGETS) $(OBJPATH)*.o |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
196 |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
197 distclean: clean |
52 | 198 -$(RM) $(DISTCLEAN_TARGETS) *~ core *.core |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
199 |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
200 .PHONY: clean distclean all |