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