Rev 4866 | Rev 5022 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4866 | Rev 4930 | ||
---|---|---|---|
1 | LIBRARY = freetype |
1 | LIBRARY = freetype |
2 | 2 | ||
3 | CC = kos32-gcc |
3 | CC = kos32-gcc |
4 | AR = kos32-ar |
4 | AR = kos32-ar |
5 | LD = kos32-ld |
5 | LD = kos32-ld |
6 | STRIP = kos32-strip |
6 | STRIP = kos32-strip |
7 | 7 | ||
8 | CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -Wall -Winline -fomit-frame-pointer |
8 | CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -Wall -Winline -fomit-frame-pointer |
9 | 9 | ||
10 | LDFLAGS = -shared -s -nostdlib -T ../newlib/dll.lds --entry _DllStartup --image-base=0 |
10 | LDFLAGS = -shared -s -nostdlib -T ../newlib/dll.lds --entry _DllStartup --image-base=0 |
11 | LDFLAGS+= --out-implib lib$(LIBRARY).dll.a |
11 | LDFLAGS+= --out-implib lib$(LIBRARY).dll.a |
12 | 12 | ||
13 | ARFLAGS = crs |
13 | ARFLAGS = crs |
14 | 14 | ||
15 | INCLUDES= -I../newlib/include -I./include -I./include/freetype/config |
15 | INCLUDES= -I../newlib/libc/include -I./include -I./include/freetype/config |
16 | 16 | ||
17 | LIBPATH:= -L../../lib -L/home/autobuild/tools/win32/mingw32/lib |
17 | LIBPATH:= -L../../lib -L/home/autobuild/tools/win32/mingw32/lib |
18 | 18 | ||
19 | LIBS:= -ldll -lc.dll -lgcc |
19 | LIBS:= -ldll -lc.dll -lgcc |
20 | 20 | ||
21 | DEFINES:= -DFT_CONFIG_CONFIG_H=" |
21 | DEFINES:= -DFT_CONFIG_CONFIG_H=" |
22 | 22 | ||
23 | SOURCES = \ |
23 | SOURCES = \ |
24 | src/autofit/autofit.c \ |
24 | src/autofit/autofit.c \ |
25 | src/base/ftbase.c \ |
25 | src/base/ftbase.c \ |
26 | src/base/ftbbox.c \ |
26 | src/base/ftbbox.c \ |
27 | src/base/ftbdf.c \ |
27 | src/base/ftbdf.c \ |
28 | src/base/ftbitmap.c \ |
28 | src/base/ftbitmap.c \ |
29 | src/base/ftcid.c \ |
29 | src/base/ftcid.c \ |
30 | src/base/ftdebug.c \ |
30 | src/base/ftdebug.c \ |
31 | src/base/ftfstype.c \ |
31 | src/base/ftfstype.c \ |
32 | src/base/ftgasp.c \ |
32 | src/base/ftgasp.c \ |
33 | src/base/ftglyph.c \ |
33 | src/base/ftglyph.c \ |
34 | src/base/ftgxval.c \ |
34 | src/base/ftgxval.c \ |
35 | src/base/ftinit.c \ |
35 | src/base/ftinit.c \ |
36 | src/base/ftlcdfil.c \ |
36 | src/base/ftlcdfil.c \ |
37 | src/base/ftmm.c \ |
37 | src/base/ftmm.c \ |
38 | src/base/ftotval.c \ |
38 | src/base/ftotval.c \ |
39 | src/base/ftpatent.c \ |
39 | src/base/ftpatent.c \ |
40 | src/base/ftpfr.c \ |
40 | src/base/ftpfr.c \ |
41 | src/base/ftstroke.c \ |
41 | src/base/ftstroke.c \ |
42 | src/base/ftsynth.c \ |
42 | src/base/ftsynth.c \ |
43 | src/base/ftsystem.c \ |
43 | src/base/ftsystem.c \ |
44 | src/base/fttype1.c \ |
44 | src/base/fttype1.c \ |
45 | src/bdf/bdf.c \ |
45 | src/bdf/bdf.c \ |
46 | src/bzip2/ftbzip2.c \ |
46 | src/bzip2/ftbzip2.c \ |
47 | src/cache/ftcache.c \ |
47 | src/cache/ftcache.c \ |
48 | src/cff/cff.c \ |
48 | src/cff/cff.c \ |
49 | src/cid/type1cid.c \ |
49 | src/cid/type1cid.c \ |
50 | src/gzip/ftgzip.c \ |
50 | src/gzip/ftgzip.c \ |
51 | src/lzw/ftlzw.c \ |
51 | src/lzw/ftlzw.c \ |
52 | src/otvalid/otvalid.c \ |
52 | src/otvalid/otvalid.c \ |
53 | src/pcf/pcf.c \ |
53 | src/pcf/pcf.c \ |
54 | src/pfr/pfr.c \ |
54 | src/pfr/pfr.c \ |
55 | src/psaux/psaux.c \ |
55 | src/psaux/psaux.c \ |
56 | src/pshinter/pshinter.c \ |
56 | src/pshinter/pshinter.c \ |
57 | src/psnames/psnames.c \ |
57 | src/psnames/psnames.c \ |
58 | src/raster/raster.c \ |
58 | src/raster/raster.c \ |
59 | src/sfnt/sfnt.c \ |
59 | src/sfnt/sfnt.c \ |
60 | src/smooth/smooth.c \ |
60 | src/smooth/smooth.c \ |
61 | src/truetype/truetype.c \ |
61 | src/truetype/truetype.c \ |
62 | src/type1/type1.c \ |
62 | src/type1/type1.c \ |
63 | src/type42/type42.c \ |
63 | src/type42/type42.c \ |
64 | src/winfonts/winfnt.c |
64 | src/winfonts/winfnt.c |
65 | 65 | ||
66 | OBJECTS = $(patsubst %.c, %.o, $(SOURCES)) |
66 | OBJECTS = $(patsubst %.c, %.o, $(SOURCES)) |
67 | 67 | ||
68 | ifeq ($(findstring ebox,$(MAKECMDGOALS)),ebox) |
68 | ifeq ($(findstring ebox,$(MAKECMDGOALS)),ebox) |
69 | CFLAGS+=-march=pentium-mmx |
69 | CFLAGS+=-march=pentium-mmx |
70 | endif |
70 | endif |
71 | 71 | ||
72 | # targets |
72 | # targets |
73 | 73 | ||
74 | all:lib$(LIBRARY).a $(LIBRARY).dll |
74 | all:lib$(LIBRARY).a $(LIBRARY).dll |
75 | 75 | ||
76 | ebox:lib$(LIBRARY).a $(LIBRARY).dll |
76 | ebox:lib$(LIBRARY).a $(LIBRARY).dll |
77 | 77 | ||
78 | lib$(LIBRARY).a: $(OBJECTS) Makefile |
78 | lib$(LIBRARY).a: $(OBJECTS) Makefile |
79 | $(AR) cvrs lib$(LIBRARY).a $(OBJECTS) |
79 | $(AR) cvrs lib$(LIBRARY).a $(OBJECTS) |
80 | mv -f lib$(LIBRARY).a ../../lib |
80 | mv -f lib$(LIBRARY).a ../../lib |
81 | 81 | ||
82 | $(LIBRARY).dll: lib$(LIBRARY).def $(OBJECTS) Makefile |
82 | $(LIBRARY).dll: lib$(LIBRARY).def $(OBJECTS) Makefile |
83 | $(LD) $(LDFLAGS) $(LIBPATH) -o $@ lib$(LIBRARY).def $(OBJECTS) $(LIBS) |
83 | $(LD) $(LDFLAGS) $(LIBPATH) -o $@ lib$(LIBRARY).def $(OBJECTS) $(LIBS) |
84 | $(STRIP) $@ |
84 | $(STRIP) $@ |
85 | #sed -f ../newlib/cmd1.sed lib$(LIBRARY).def > mem |
85 | #sed -f ../newlib/cmd1.sed lib$(LIBRARY).def > mem |
86 | #sed -f ../newlib/cmd2.sed mem >$(LIBRARY).inc |
86 | #sed -f ../newlib/cmd2.sed mem >$(LIBRARY).inc |
87 | mv -f $@ ../../bin |
87 | mv -f $@ ../../bin |
88 | mv -f lib$(LIBRARY).dll.a ../../lib |
88 | mv -f lib$(LIBRARY).dll.a ../../lib |
89 | 89 | ||
90 | 90 | ||
91 | %.o : %.c Makefile |
91 | %.o : %.c Makefile |
92 | $(CC) $(INCLUDES) $(CFLAGS) $(DEFINES) -o $@ $< |
92 | $(CC) $(INCLUDES) $(CFLAGS) $(DEFINES) -o $@ $< |
93 | 93 | ||
94 | 94 | ||
95 | clean: |
95 | clean: |
96 | -rm -f *.o |
96 | -rm -f *.o |
97 | 97 | ||
98 | 98 | ||
99 | clean:> |
99 | clean:> |