Simplify .exe wrapper
[winelib-gnu-make.git] / clock+wow32 / Makefile
blob7b5cb300e1a148c22f8fd204a782de8a3a008ed9
1 # Example Makefile which demonstrates useage of Winemake build system
3 MODULES := clock.exe wow32.dll
4 SUBDIRS := winhttp
6 # global flags (exporting them affects subdirictories)
8 # use Wine's MSVCRT
9 # XXX: unfortunately incompatible with libstdc++ !
10 # export CEXTRA := -mno-cygwin
11 # export CXXEXTRA := -mno-cygwin
12 # export LDEXTRA := -mno-cygwin
14 #############
15 # clock.exe #
16 #############
17 clock_exe_SRC := \
18 main.c \
19 winclock.c \
20 rsrc.rc \
21 clock_utils.c++ \
24 # target specific CFLAGS addons
25 clock.exe: CFLAGS += -fno-pic
27 # object specific CFLAGS addons
28 winclock.o:CFLAGS += -O3 -ffast-math
30 # # libstdc++ does not like MSVCRT (this is code-wise hackish)
31 # clock_utils.o: CXXEXTRA := $(filter-out -mno-cygwin,$(CXXEXTRA))
33 # target specific linker stuff
34 clock.exe: LDFLAGS := -mwindows
35 clock.exe: DLLS := odbc32
36 clock.exe: LIBS := uuid
39 #############
40 # wow32.dll #
41 #############
42 wow32_dll_SRC := \
43 wow_main.c \
44 wow32.spec \
47 wow32.dll: CFLAGS += -mno-cygwin
48 wow32.dll: CXXFLAGS += -mno-cygwin
49 wow32.dll: LDFLAGS += -mno-cygwin
53 # Include rules
55 # if located in non-std place, set in your environment
56 # MAKEFLAGS="-I /path/to/winemake-include-dir/"
58 # or put Winemake.include at the root of your project.
59 # or include Winemake.include in the top-level Makefile with explicit path.
61 # NB: std-places (as stated in GNU make manual):
62 # /usr/include /usr/local/include ...
63 include Winemake.include