Mercurial > dwindows
comparison makefile.emx @ 1594:6baf177f335c
Rename compat.c/h dwcompat.c/h and configure option to --with-dwcompat.
There are several other projects that include compat.c and compat.h...
To avoid conflicts make sure the header and source files match the library.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 23 Feb 2012 12:44:15 +0000 |
parents | 324812debcc9 |
children | 080b764e8982 |
comparison
equal
deleted
inserted
replaced
1593:19af25f71e1f | 1594:6baf177f335c |
---|---|
19 CFLAGS = -O -g -Zomf -Zmt -D__OS2__ -D__ST_MT_ERRNO__ -DVER_REV=$(VERREV) -I. -Wall -o $(@) | 19 CFLAGS = -O -g -Zomf -Zmt -D__OS2__ -D__ST_MT_ERRNO__ -DVER_REV=$(VERREV) -I. -Wall -o $(@) |
20 LDFLAGS = -Zdll -static-libgcc | 20 LDFLAGS = -Zdll -static-libgcc |
21 RCFLAGS = -r | 21 RCFLAGS = -r |
22 | 22 |
23 | 23 |
24 COMPATOBJECTS = compat.obj dirent.obj | 24 COMPATOBJECTS = dwcompat.obj dirent.obj |
25 COMPATSOURCES = compat.c dirent.c | 25 COMPATSOURCES = dwcompat.c dirent.c |
26 | 26 |
27 all: dw.dll dwcompat.dll dwtest.exe | 27 all: dw.dll dwcompat.dll dwtest.exe |
28 | 28 |
29 dw.dll: os2\dw.c os2\dw.def | 29 dw.dll: os2\dw.c os2\dw.def |
30 $(CC) $(CFLAGS) $(DEFS) -o dw.dll os2/dw.c $(LDFLAGS) os2/dw.def | 30 $(CC) $(CFLAGS) $(DEFS) -o dw.dll os2/dw.c $(LDFLAGS) os2/dw.def |
49 $(RM) *.obj *.o *.lib *.res *~ dwtest.exe dw.dll dwcompat.dll SVN.REV | 49 $(RM) *.obj *.o *.lib *.res *~ dwtest.exe dw.dll dwcompat.dll SVN.REV |
50 | 50 |
51 dw.obj: dw.c | 51 dw.obj: dw.c |
52 $(CC) $(CFLAGS) -c $< | 52 $(CC) $(CFLAGS) -c $< |
53 | 53 |
54 compat.obj: compat.c | 54 dwcompat.obj: dwcompat.c |
55 $(CC) $(CFLAGS) -c $< | 55 $(CC) $(CFLAGS) -c $< |
56 | 56 |
57 dirent.obj: os2/dirent.c | 57 dirent.obj: os2/dirent.c |
58 $(CC) $(CFLAGS) -c $< | 58 $(CC) $(CFLAGS) -c $< |
59 | 59 |