Rev 6531 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6531 | Rev 6924 | ||
---|---|---|---|
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 |
|
34 | mv -f $(LIBRARY).a $(INSTALLDIR) |
36 | mv -f $(LIBRARY).a $(INSTALLDIR) |
35 | 37 | ||
36 | %.o : %.c Makefile |
38 | %.o : %.c Makefile |
37 | $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |
39 | $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |
38 | 40 | ||
39 | clean: |
41 | clean: |
40 | -rm -f lib/*.o |
42 | -rm -f lib/*.o |
41 | 43 | ||
42 | clean:> |
44 | clean:> |