comparison makefile.emx @ 1165:590740c9c5c6

Experimental change to link with static -lgcc... this elimates the need for the gccxxx.dll however...I tried -lc_s to get rid of libc063.dll but it was missing symbols.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 16 Sep 2011 11:20:14 +0000
parents cb1e6b29aa7d
children 5ff264b41985
comparison
equal deleted inserted replaced
1164:cb1e6b29aa7d 1165:590740c9c5c6
13 13
14 DEFS = 14 DEFS =
15 LIBS = 15 LIBS =
16 16
17 CFLAGS = -O -g -Zomf -Zmt -D__OS2__ -D__ST_MT_ERRNO__ -DVER_REV=$(VERREV) -I. -Wall -o $(@) 17 CFLAGS = -O -g -Zomf -Zmt -D__OS2__ -D__ST_MT_ERRNO__ -DVER_REV=$(VERREV) -I. -Wall -o $(@)
18 LDFLAGS = -Zdll -Zcrtdll 18 LDFLAGS = -Zdll -static-libgcc
19 RCFLAGS = -r 19 RCFLAGS = -r
20 20
21 21
22 COMPATOBJECTS = compat.obj dirent.obj 22 COMPATOBJECTS = compat.obj dirent.obj
23 COMPATSOURCES = compat.c dirent.c 23 COMPATSOURCES = compat.c dirent.c
39 emximp -o dwcompat.lib dwcompat.def 39 emximp -o dwcompat.lib dwcompat.def
40 copy dwcompat.dll dll 40 copy dwcompat.dll dll
41 copy dwcompat.lib lib 41 copy dwcompat.lib lib
42 42
43 dwtest.exe: dwtest.o dw.lib dwcompat.lib 43 dwtest.exe: dwtest.o dw.lib dwcompat.lib
44 $(CC) $(CFLAGS) -Zcrtdll -Zomf -Zmt -o dwtest.exe dwtest.o -Llib -ldw -ldwcompat dwtest.def 44 $(CC) $(CFLAGS) -Zomf -Zmt -static-libgcc -o dwtest.exe dwtest.o -Llib -ldw -ldwcompat dwtest.def
45 45
46 clean: 46 clean:
47 $(RM) $(OBJECTS) dwtest.exe dw.dll dwcompat.dll 47 $(RM) $(OBJECTS) dwtest.exe dw.dll dwcompat.dll
48 48
49 dw.obj: dw.c 49 dw.obj: dw.c