Rev 6727 | Rev 6764 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6727 | Rev 6745 | ||
---|---|---|---|
Line 17... | Line 17... | ||
17 | # USE_POSIX=1 build posix-style binaries targeted for the CygWin unix |
17 | # USE_POSIX=1 build posix-style binaries targeted for the CygWin unix |
18 | # emulation environment. |
18 | # emulation environment. |
19 | SDK_DIR:= $(abspath ../../../contrib/sdk) |
19 | SDK_DIR:= $(abspath ../../../contrib/sdk) |
20 | NOASM=1 |
20 | NOASM=1 |
21 | CC_CPU_OPT=-march=pentium |
21 | CC_CPU_OPT=-march=pentium |
- | 22 | #USEZLIB=1 |
|
Line 22... | Line 23... | ||
22 | 23 | ||
Line 23... | Line 24... | ||
23 | ### Optional section |
24 | ### Optional section |
24 | 25 | ||
Line 92... | Line 93... | ||
92 | else |
93 | else |
93 | CC_ENVIR_OPT = -DWIN32 -DFORCE_WIN32_OVER_UNIX |
94 | CC_ENVIR_OPT = -DWIN32 -DFORCE_WIN32_OVER_UNIX |
94 | endif |
95 | endif |
95 | endif |
96 | endif |
96 | ### kolibri specific |
97 | ### kolibri specific |
97 | INCLUDES= -I $(SDK_DIR)/sources/newlib/libc/include |
98 | INCLUDES= -I $(SDK_DIR)/sources/newlib/libc/include -I $(SDK_DIR)/sources/zlib |
98 | LIBPATH = -L $(SDK_DIR)/lib -L /home/autobuild/tools/win32/mingw32/lib |
99 | LIBPATH = -L $(SDK_DIR)/lib -L /home/autobuild/tools/win32/mingw32/lib |
Line 99... | Line 100... | ||
99 | 100 | ||
100 | CC_ENVIR_OPT = -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -DKOS32 \ |
101 | CC_ENVIR_OPT = -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -DKOS32 \ |
Line 150... | Line 151... | ||
150 | CC_OUT_OPT = -o |
151 | CC_OUT_OPT = -o |
Line 151... | Line 152... | ||
151 | 152 | ||
152 | # Other specific options |
153 | # Other specific options |
153 | CC_SPECIFIC_OPT = -c $(CC_ENVIR_OPT) |
154 | CC_SPECIFIC_OPT = -c $(CC_ENVIR_OPT) |
154 | AS_SPECIFIC_OPT = -c |
155 | AS_SPECIFIC_OPT = -c |
155 | LD_SPECIFIC_OPT = -o $@ -static -S -nostdlib -T $(SDK_DIR)/lib/app-dynamic.lds \ |
156 | LD_SPECIFIC_OPT = -o $@ -static -S -nostdlib -T $(SDK_DIR)/sources/newlib/app-dynamic.lds \ |
Line 156... | Line 157... | ||
156 | --image-base 0 $(LIBPATH) |
157 | --image-base 0 $(LIBPATH) |
157 | 158 | ||
- | 159 | # Libraries for the debug & release version |
|
158 | # Libraries for the debug & release version |
160 | # (GCC 2.95 and newer does not require the system library specifications) |
159 | # (GCC 2.95 and newer does not require the system library specifications) |
161 | # -lapp only for gcc 4.8 |
160 | ifdef USEZLIB |
162 | ifdef USEZLIB |
161 | LD_RELEASE_LIBS = -lz -lgcc -ldll -lc.dll |
163 | LD_RELEASE_LIBS = -lz -lgcc -ldll -lc.dll -lapp |
162 | else |
164 | else |
163 | LD_RELEASE_LIBS = -lgcc -ldll -lc.dll |
165 | LD_RELEASE_LIBS = -lgcc -ldll -lc.dll -lapp |
Line 164... | Line 166... | ||
164 | endif |
166 | endif |
Line 165... | Line 167... | ||
165 | LD_DEBUG_LIBS = $(LD_RELEASE_LIBS) |
167 | LD_DEBUG_LIBS = $(LD_RELEASE_LIBS) |
166 | 168 | ||
167 | 169 | ||
Line 168... | Line 170... | ||
168 | ### System-specific section |
170 | ### System-specific section |
169 | 171 | ||
Line 170... | Line 172... | ||
170 | # Suffixes |
172 | # Suffixes |
Line 271... | Line 273... | ||
271 | #lib: libunzip32.a |
273 | #lib: libunzip32.a |
272 | ###all: unzips dll dllsample guisfx lib |
274 | ###all: unzips dll dllsample guisfx lib |
273 | all: unzip$(EXE) |
275 | all: unzip$(EXE) |
Line 274... | Line 276... | ||
274 | 276 | ||
275 | unzip$(EXE): $(OBJU) $(LIBBZIP2) |
277 | unzip$(EXE): $(OBJU) $(LIBBZIP2) |
276 | $(LD) $(LDFLAGS) $(LDVER) $(OBJU) $(LD_BZ2LIB) $(LDLIBS) -Map=unzip.exe.map |
278 | $(LD) $(LDFLAGS) $(LDVER) $(OBJU) $(LD_BZ2LIB) $(LDLIBS) -Map=unzip.map |
Line 277... | Line 279... | ||
277 | kos32-objcopy $@ -O binary |
279 | kos32-objcopy $@ -O binary |
278 | 280 |