File:  [ELWIX - Embedded LightWeight unIX -] / gpl / axl / src / Makefile.win
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Jun 8 07:09:12 2011 UTC (13 years, 4 months ago) by misho
Branches: axl, MAIN
CVS tags: HEAD, AXL0_6_7, AXL0_6_1
3th party - XML

# Makefile for windows (mingw)
OBJ  = axl.o \
       axl_decl.o \
       axl_doc.o \
       axl_dtd.o \
       axl_error.o \
       axl_list.o \
       axl_log.o \
       axl_node.o \
       axl_stack.o \
       axl_hash.o \
       axl_stream.o \
       axl_factory.o

DLL        = $(axl_dll).dll
IMPORT_DLL = $(DLL).a
STATIC_LIB = $(axl_dll).a

LIBS = -Wall $(enable_gcc_debug) --add-stdcall-alias $(search_lib_path) 

INCS = -I"."

CFLAGS = $(INCS) -DVERSION=\""$(AXL_VERSION)"\" -Wall -g -D__axl_disable_broken_bool_def__  $(enable_axl_log)

RM = rm -f

.PHONY: all clean

all: copy_config $(DLL)

copy_config:
	cp axl_config_win32.h axl_config.h

clean: 
	${RM} $(OBJ) $(DLL) *.a *.dll.a *.lib *.dll

install: all


$(DLL): $(OBJ)
# add the following line to create an import library. At this point this step
# is not requiered because gcc automatically get an import library from the dll.
# -Wl,--out-implib,libaxl.lib
	$(CC) -m$(MODE) -shared -Wl,--out-implib,$(IMPORT_DLL) --export-all-symbols -lm \
		  $(OBJ) -o $(DLL)        $(LIBS)
	lib.exe /def:libaxl.def
	strip --strip-unneeded $(DLL)

%.o: %.c
	$(CC) -c $< -o $@ $(CFLAGS)

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