Annotation of gpl/axl/babel/Makefile.win, revision 1.1.1.1
1.1 misho 1: # Makefile for windows (mingw)
2: OBJ = axl_babel.o \
3: axl_babel_iso885915.o \
4: axl_babel_iso88591.o \
5: axl_babel_iso88592.o \
6: axl_babel_iso88593.o \
7: axl_babel_iso88594.o \
8: axl_babel_iso88595.o \
9: axl_babel_iso88596.o \
10: axl_babel_iso88597.o \
11: axl_babel_iso88598.o \
12: axl_babel_iso88599.o
13:
14: DLL = $(axl_dll)-babel.dll
15: IMPORT_DLL = $(DLL).a
16: STATIC_LIB = $(axl_dll)-babel.a
17:
18: LIBS = -Wall $(enable_gcc_debug) --add-stdcall-alias $(search_lib_path) -laxl -L"../src"
19:
20: INCS = -I"." -I"../src"
21:
22: CFLAGS = $(INCS) -DVERSION=\""$(AXL_VERSION)"\" -Wall -g -D__axl_disable_broken_bool_def__ $(enable_axl_log)
23:
24: RM = rm -f
25:
26: .PHONY: all clean
27:
28: all: $(DLL)
29:
30: clean:
31: ${RM} $(OBJ) $(DLL) *.a *.dll.a *.lib *.dll
32:
33: install: all
34:
35:
36: $(DLL): $(OBJ)
37: # add the following line to create an import library. At this point this step
38: # is not requiered because gcc automatically get an import library from the dll.
39: # -Wl,--out-implib,libaxl.lib
40: $(CC) -m$(MODE) -shared -Wl,--out-implib,$(IMPORT_DLL) --export-all-symbols \
41: $(OBJ) -o $(DLL) $(LIBS)
42: lib.exe /def:$(axl_dll)-babel.def
43: strip --strip-unneeded $(DLL)
44:
45: %.o: %.c
46: $(CC) -c $< -o $@ $(CFLAGS)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>