Rev 6924 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6924 | Rev 7195 | ||
---|---|---|---|
1 | LIBRARY= libexpat |
1 | LIBRARY= libexpat |
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 | 6 | ||
7 | INSTALLDIR:= /home/autobuild/tools/win32/lib |
7 | INSTALLDIR:= /home/autobuild/tools/win32/lib |
8 | 8 | ||
9 | CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -fno-ident -fomit-frame-pointer |
9 | CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -fno-ident -fomit-frame-pointer |
10 | 10 | ||
11 | ARFLAGS = crs |
11 | ARFLAGS = crs |
12 | 12 | ||
13 | INCLUDES= -I. -I../newlib/libc/include |
13 | INCLUDES= -I. -I../newlib/libc/include |
14 | 14 | ||
15 | DEFS = -DHAVE_EXPAT_CONFIG_H |
15 | DEFS = -DHAVE_EXPAT_CONFIG_H |
16 | 16 | ||
17 | DEFINES= $(DEFS) |
17 | DEFINES= $(DEFS) |
18 | 18 | ||
19 | SRCS = lib/xmlparse.c \ |
19 | SRCS = lib/xmlparse.c \ |
20 | lib/xmlrole.c \ |
20 | lib/xmlrole.c \ |
21 | lib/xmltok.c \ |
21 | lib/xmltok.c \ |
22 | lib/xmltok_impl.c \ |
22 | lib/xmltok_impl.c \ |
23 | lib/xmltok_ns.c \ |
23 | lib/xmltok_ns.c \ |
24 | $(NULL) |
24 | $(NULL) |
25 | 25 | ||
26 | OBJS = $(patsubst %.c, %.o, $(SRCS)) |
26 | OBJS = $(patsubst %.c, %.o, $(SRCS)) |
27 | 27 | ||
28 | # targets |
28 | # targets |
29 | 29 | ||
30 | all:$(LIBRARY).a |
30 | all:$(LIBRARY).a |
31 | 31 | ||
32 | $(LIBRARY).a: $(OBJS) Makefile |
32 | $(LIBRARY).a: $(OBJS) Makefile |
33 | $(AR) $(ARFLAGS) $(LIBRARY).a $(OBJS) |
33 | $(AR) $(ARFLAGS) $(LIBRARY).a $(OBJS) |
34 | - | ||
35 | install: $(LIBRARY).a |
- | |
36 | mv -f $(LIBRARY).a $(INSTALLDIR) |
34 | mv -f $(LIBRARY).a $(INSTALLDIR) |
37 | 35 | ||
38 | %.o : %.c Makefile |
36 | %.o : %.c Makefile |
39 | $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |
37 | $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |
40 | 38 | ||
41 | clean: |
39 | clean: |
42 | -rm -f lib/*.o |
40 | -rm -f lib/*.o |
43 | 41 | ||
44 | clean:> |
42 | clean:> |