Mercurial > dwindows
annotate makefile.emx @ 1245:3a2ffe3a7eae
Implemented dw_pixmap_stretch_bitblt() on GTK3...
GTK2 support for printing contexts is there but not tested.
GTK2 pixmap/drawable support to come if possible.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 19 Oct 2011 09:40:23 +0000 |
parents | 38e925147a60 |
children | d4c874f13e9b |
rev | line source |
---|---|
638
3ce487327afd
Support for building binary for OS/2
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
525
diff
changeset
|
1 # $Id$ |
25
f9fd7238635c
Added EMX makefile.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2 |
26
5e38361f823b
Removed old include directives.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
25
diff
changeset
|
3 # Dynamic Windows EMX Makefile |
25
f9fd7238635c
Added EMX makefile.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
4 |
f9fd7238635c
Added EMX makefile.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
5 CC = gcc |
f9fd7238635c
Added EMX makefile.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
6 RM = rm -f |
f9fd7238635c
Added EMX makefile.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
7 RC = rc |
f9fd7238635c
Added EMX makefile.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
8 MAKE = make |
f9fd7238635c
Added EMX makefile.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
9 COMPRESS = lxlite |
1113
a049f447999c
Updated makefiles to 2.1 on Windows and OS/2 for packaging.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1031
diff
changeset
|
10 VER = 21 |
a049f447999c
Updated makefiles to 2.1 on Windows and OS/2 for packaging.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1031
diff
changeset
|
11 VERDOT = 2.1 |
1173
38e925147a60
Revert to using a file as the source for SVN revision number.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1172
diff
changeset
|
12 AVERREV = $(shell os2\svnrev.cmd) |
38e925147a60
Revert to using a file as the source for SVN revision number.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1172
diff
changeset
|
13 include SVN.REV |
25
f9fd7238635c
Added EMX makefile.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
14 |
f9fd7238635c
Added EMX makefile.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
15 DEFS = |
f9fd7238635c
Added EMX makefile.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
16 LIBS = |
f9fd7238635c
Added EMX makefile.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
17 |
1164
cb1e6b29aa7d
Include revision number on OS/2 using EMX/gcc.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1113
diff
changeset
|
18 CFLAGS = -O -g -Zomf -Zmt -D__OS2__ -D__ST_MT_ERRNO__ -DVER_REV=$(VERREV) -I. -Wall -o $(@) |
1165
590740c9c5c6
Experimental change to link with static -lgcc...
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1164
diff
changeset
|
19 LDFLAGS = -Zdll -static-libgcc |
25
f9fd7238635c
Added EMX makefile.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
20 RCFLAGS = -r |
f9fd7238635c
Added EMX makefile.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
21 |
f9fd7238635c
Added EMX makefile.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
22 |
525
2ff26b697877
Fixes for building with Innotek GCC. Will have to check for regressions
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
511
diff
changeset
|
23 COMPATOBJECTS = compat.obj dirent.obj |
174
75bf3051235f
Fixes so you can mix compilers.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
26
diff
changeset
|
24 COMPATSOURCES = compat.c dirent.c |
25
f9fd7238635c
Added EMX makefile.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
25 |
263
10a34404c825
Add more dependencies.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
174
diff
changeset
|
26 all: dw.dll dwcompat.dll dwtest.exe |
10a34404c825
Add more dependencies.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
174
diff
changeset
|
27 |
10a34404c825
Add more dependencies.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
174
diff
changeset
|
28 dw.dll: os2\dw.c dw.def |
10a34404c825
Add more dependencies.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
174
diff
changeset
|
29 $(CC) $(CFLAGS) $(DEFS) -o dw.dll os2/dw.c $(LDFLAGS) dw.def |
10a34404c825
Add more dependencies.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
174
diff
changeset
|
30 |
10a34404c825
Add more dependencies.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
174
diff
changeset
|
31 dw.lib: dw.def |
10a34404c825
Add more dependencies.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
174
diff
changeset
|
32 emximp -o dw.lib dw.def |
10a34404c825
Add more dependencies.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
174
diff
changeset
|
33 copy dw.dll dll |
10a34404c825
Add more dependencies.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
174
diff
changeset
|
34 copy dw.lib lib |
638
3ce487327afd
Support for building binary for OS/2
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
525
diff
changeset
|
35 |
263
10a34404c825
Add more dependencies.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
174
diff
changeset
|
36 dwcompat.dll: $(COMPATOBJECTS) dwcompat.def |
10a34404c825
Add more dependencies.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
174
diff
changeset
|
37 $(CC) $(CFLAGS) $(DEFS) -o dwcompat.dll $(COMPATOBJECTS) $(LDFLAGS) -lsocket dwcompat.def |
25
f9fd7238635c
Added EMX makefile.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
38 |
263
10a34404c825
Add more dependencies.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
174
diff
changeset
|
39 dwcompat.lib: dwcompat.def |
10a34404c825
Add more dependencies.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
174
diff
changeset
|
40 emximp -o dwcompat.lib dwcompat.def |
10a34404c825
Add more dependencies.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
174
diff
changeset
|
41 copy dwcompat.dll dll |
10a34404c825
Add more dependencies.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
174
diff
changeset
|
42 copy dwcompat.lib lib |
25
f9fd7238635c
Added EMX makefile.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
43 |
511
80dbd5a1f403
Removed the increments parameter from dw_scrollbar_new().
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
288
diff
changeset
|
44 dwtest.exe: dwtest.o dw.lib dwcompat.lib |
1165
590740c9c5c6
Experimental change to link with static -lgcc...
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1164
diff
changeset
|
45 $(CC) $(CFLAGS) -Zomf -Zmt -static-libgcc -o dwtest.exe dwtest.o -Llib -ldw -ldwcompat dwtest.def |
263
10a34404c825
Add more dependencies.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
174
diff
changeset
|
46 |
638
3ce487327afd
Support for building binary for OS/2
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
525
diff
changeset
|
47 clean: |
1164
cb1e6b29aa7d
Include revision number on OS/2 using EMX/gcc.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1113
diff
changeset
|
48 $(RM) $(OBJECTS) dwtest.exe dw.dll dwcompat.dll |
263
10a34404c825
Add more dependencies.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
174
diff
changeset
|
49 |
525
2ff26b697877
Fixes for building with Innotek GCC. Will have to check for regressions
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
511
diff
changeset
|
50 dw.obj: dw.c |
25
f9fd7238635c
Added EMX makefile.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
51 $(CC) $(CFLAGS) -c $< |
f9fd7238635c
Added EMX makefile.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
52 |
525
2ff26b697877
Fixes for building with Innotek GCC. Will have to check for regressions
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
511
diff
changeset
|
53 compat.obj: compat.c |
263
10a34404c825
Add more dependencies.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
174
diff
changeset
|
54 $(CC) $(CFLAGS) -c $< |
25
f9fd7238635c
Added EMX makefile.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
55 |
525
2ff26b697877
Fixes for building with Innotek GCC. Will have to check for regressions
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
511
diff
changeset
|
56 dirent.obj: os2/dirent.c |
263
10a34404c825
Add more dependencies.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
174
diff
changeset
|
57 $(CC) $(CFLAGS) -c $< |
25
f9fd7238635c
Added EMX makefile.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
58 |
525
2ff26b697877
Fixes for building with Innotek GCC. Will have to check for regressions
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
511
diff
changeset
|
59 dwtest.obj: dwtest.c |
263
10a34404c825
Add more dependencies.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
174
diff
changeset
|
60 $(CC) $(CFLAGS) -c $< |
25
f9fd7238635c
Added EMX makefile.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
61 |
638
3ce487327afd
Support for building binary for OS/2
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
525
diff
changeset
|
62 zip: dw.dll |
3ce487327afd
Support for building binary for OS/2
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
525
diff
changeset
|
63 copy os2\readme-os2.txt . |
1031
3222905690f2
Changes preparing for 2.0 release on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
638
diff
changeset
|
64 zip dwindows-os2-$(VERDOT).zip readme-os2.txt readme dw.dll dwcompat.dll dw.lib dwcompat.lib dw.h |