File: Makefile

package info (click to toggle)
codelite 12.0+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 95,112 kB
  • sloc: cpp: 424,040; ansic: 18,284; php: 9,569; lex: 4,186; yacc: 2,820; python: 2,294; sh: 312; makefile: 51; xml: 13
file content (28 lines) | stat: -rw-r--r-- 887 bytes parent folder | download | duplicates (2)
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
ifeq ($(type),release)
  WX_COMMAND=`wx-config --cflags --debug=no`
  FLAGS=-O2 -DNDEBUG -fPIC -std=c++11
  TARGET=precompiled_header_release.h.gch
else
  WX_COMMAND=`wx-config --cflags --debug=no`
  FLAGS=-g -O0 -fPIC -std=c++11
  TARGET=precompiled_header_dbg.h.gch
endif

ifeq ($(os),osx)
  OSX_FLAGS=-mmacosx-version-min=10.8 -stdlib=libc++
else
  OSX_FLAGS=
endif

all: $(TARGET)

precompiled_header_dbg.h.gch: precompiled_header_dbg.h
	@echo -- Building PCH file precompiled_header_dbg.h.gch
	$(CXX) $(FLAGS) $(CFLAGS) $(WX_COMMAND) $(OSX_FLAGS) -c precompiled_header_dbg.h -o precompiled_header_dbg.h.gch

precompiled_header_release.h.gch: precompiled_header_release.h
	@echo -- Building PCH file precompiled_header_release.h.gch
	$(CXX) $(FLAGS) $(CFLAGS) $(WX_COMMAND) $(OSX_FLAGS) -c precompiled_header_release.h -o precompiled_header_release.h.gch

clean:
	$(RM) -f $(TARGET)