-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgmake.defs
51 lines (41 loc) · 1000 Bytes
/
gmake.defs
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
# -*- Makefile -*- definitions for MinGW
# The following variables are project-specific definitions
TargetName = dlgedit
OutName = dlgedit.exe
# END project-specific definitions
EMPTY =
SPACE = $(EMPTY) $(EMPTY)
CC = $(CROSS)gcc
CC_OUT = -o$(SPACE)
LINK = $(CROSS)gcc
LINK_OUT = -o$(SPACE)
RC = $(CROSS)windres -O coff
RC_OUT = -o$(SPACE)
O = o
# Testing configured variables needs a whitespace to work correctly
ifdef NODEBUG
OutDir = obj
else
OutDir = obj-dbg
endif
ifdef NOCYGWIN
CC = gcc -mno-cygwin
endif
# Build flags for targets
cflags = $(USER_CFLAGS) -c
guiflags = $(USER_LDFLAGS) -static-libgcc
ifdef NODEBUG
cdebug = -O3
linkdebug =
else
cdebug = -g -Wall
linkdebug =
endif
SUBSYSTEM_WINDOWS=-Wl,-subsystem,windows
guilibs = -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32
olelibs = -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32
ifdef NODEBUG
POSTBUILD = strip $(OutDir)/$(OutName)
else
POSTBUILD =
endif