Annotation of gpl/axl/src/Makefile.win, revision 1.1.1.1

1.1       misho       1: # Makefile for windows (mingw)
                      2: OBJ  = axl.o \
                      3:        axl_decl.o \
                      4:        axl_doc.o \
                      5:        axl_dtd.o \
                      6:        axl_error.o \
                      7:        axl_list.o \
                      8:        axl_log.o \
                      9:        axl_node.o \
                     10:        axl_stack.o \
                     11:        axl_hash.o \
                     12:        axl_stream.o \
                     13:        axl_factory.o
                     14: 
                     15: DLL        = $(axl_dll).dll
                     16: IMPORT_DLL = $(DLL).a
                     17: STATIC_LIB = $(axl_dll).a
                     18: 
                     19: LIBS = -Wall $(enable_gcc_debug) --add-stdcall-alias $(search_lib_path) 
                     20: 
                     21: INCS = -I"."
                     22: 
                     23: CFLAGS = $(INCS) -DVERSION=\""$(AXL_VERSION)"\" -Wall -g -D__axl_disable_broken_bool_def__  $(enable_axl_log)
                     24: 
                     25: RM = rm -f
                     26: 
                     27: .PHONY: all clean
                     28: 
                     29: all: copy_config $(DLL)
                     30: 
                     31: copy_config:
                     32:        cp axl_config_win32.h axl_config.h
                     33: 
                     34: clean: 
                     35:        ${RM} $(OBJ) $(DLL) *.a *.dll.a *.lib *.dll
                     36: 
                     37: install: all
                     38: 
                     39: 
                     40: $(DLL): $(OBJ)
                     41: # add the following line to create an import library. At this point this step
                     42: # is not requiered because gcc automatically get an import library from the dll.
                     43: # -Wl,--out-implib,libaxl.lib
                     44:        $(CC) -m$(MODE) -shared -Wl,--out-implib,$(IMPORT_DLL) --export-all-symbols -lm \
                     45:                  $(OBJ) -o $(DLL)        $(LIBS)
                     46:        lib.exe /def:libaxl.def
                     47:        strip --strip-unneeded $(DLL)
                     48: 
                     49: %.o: %.c
                     50:        $(CC) -c $< -o $@ $(CFLAGS)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>