Window autotools: add link.exe path and remove hard-coded path
This commit is contained in:
parent
f48131ee38
commit
9416400b21
@ -49,22 +49,15 @@ MODULE_EXT = dll
|
|||||||
CFILES = jmicasa.c
|
CFILES = jmicasa.c
|
||||||
|
|
||||||
CSFILES_CSC :=
|
CSFILES_CSC :=
|
||||||
#INCLUDES = -I. -I.. -I$(CASAROOT)/include -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux \
|
|
||||||
# -I/opt/gnome/include/gnome-keyring-1
|
|
||||||
INCLUDES = -I. -I.. -I$(CASAROOT)/include -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/win32 \
|
INCLUDES = -I. -I.. -I$(CASAROOT)/include -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/win32 \
|
||||||
RESOURCES =
|
RESOURCES =
|
||||||
DEFINES =
|
DEFINES =
|
||||||
CFLAGS += $(INCLUDES) $(DEFINES)
|
CFLAGS += $(INCLUDES) $(DEFINES)
|
||||||
|
|
||||||
#LIBS = /LIBPATH:"$(MSC)\lib" /LIBPATH:"$(MSCS)\lib" /LIBPATH:"$(CASAROOT)/lib/Release"
|
|
||||||
LIBS = /LIBPATH:"$(MSC)\lib" /LIBPATH:"$(MSC)\PlatformSDK\lib" /LIBPATH:"$(CASAROOT)/lib/Release"
|
LIBS = /LIBPATH:"$(MSC)\lib" /LIBPATH:"$(MSC)\PlatformSDK\lib" /LIBPATH:"$(CASAROOT)/lib/Release"
|
||||||
LDFLAGS = /VERSION:1.1.1 /MACHINE:IX86 \
|
LDFLAGS = /VERSION:1.1.1 /MACHINE:IX86 \
|
||||||
/dll
|
/dll
|
||||||
|
|
||||||
#LIBS = -lpthread -ldl
|
|
||||||
#LDFLAGS = -Wl,-Bsymbolic -shared -Wl,--version-script=jmicasa_lux.exp \
|
|
||||||
-L$(CASALIBDIR)/$(TARGET_CFG) -lmicasa -Wl,-soname -Wl,libjmicasa.so.1
|
|
||||||
|
|
||||||
OBJDIR = ./$(TARGET_CFG)/lib
|
OBJDIR = ./$(TARGET_CFG)/lib
|
||||||
|
|
||||||
OBJS = $(addprefix $(OBJDIR)/, $(CFILES:%.c=%.o))
|
OBJS = $(addprefix $(OBJDIR)/, $(CFILES:%.c=%.o))
|
||||||
@ -87,7 +80,7 @@ $(OBJDIR)/%.o: %.cpp
|
|||||||
|
|
||||||
$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(OBJS)
|
$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(OBJS)
|
||||||
@echo [======== Linking $@ ========]
|
@echo [======== Linking $@ ========]
|
||||||
$(LINK) $(LIBS) $(LDFLAGS) /OUT:$@ $(OBJS) kernel32.lib ole32.lib micasa.lib
|
"$(MSC)\bin\$(LINK)" $(LIBS) $(LDFLAGS) /OUT:$@ $(OBJS) kernel32.lib ole32.lib micasa.lib
|
||||||
|
|
||||||
cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT)
|
cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT)
|
||||||
cp -f $(OBJDIR)/$(MODULE_NAME).lib $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).lib
|
cp -f $(OBJDIR)/$(MODULE_NAME).lib $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).lib
|
||||||
@ -96,16 +89,6 @@ $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(OBJS)
|
|||||||
cp -f $(OBJDIR)/$(MODULE_NAME).lib $(CASALIBDIR)/$(TARGET_CFG)
|
cp -f $(OBJDIR)/$(MODULE_NAME).lib $(CASALIBDIR)/$(TARGET_CFG)
|
||||||
cp -f $(OBJDIR)/$(MODULE_NAME).lib $(CASABINDIR)$(TARGET_CFG)
|
cp -f $(OBJDIR)/$(MODULE_NAME).lib $(CASABINDIR)$(TARGET_CFG)
|
||||||
|
|
||||||
#$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(OBJS)
|
|
||||||
# @echo [======== Linking $@ ========]
|
|
||||||
# $(LINK) -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
|
|
||||||
# cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
|
|
||||||
|
|
||||||
#$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER): $(OBJDIR) $(OBJS)
|
|
||||||
# @echo [======== Linking $@ ========]
|
|
||||||
# cc -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
|
|
||||||
# cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER)
|
|
||||||
|
|
||||||
$(OBJDIR):
|
$(OBJDIR):
|
||||||
[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR)
|
[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR)
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
AC_INIT(include/micasa.h)
|
AC_INIT(include/micasa.h)
|
||||||
AC_CANONICAL_SYSTEM
|
AC_CANONICAL_SYSTEM
|
||||||
AM_INIT_AUTOMAKE(CASA, 1.6.487)
|
AM_INIT_AUTOMAKE(CASA, 1.6.626)
|
||||||
RELEASE=`date +%Y%m%d_%H%M`
|
RELEASE=`date +%Y%m%d_%H%M`
|
||||||
AC_SUBST(RELEASE)
|
AC_SUBST(RELEASE)
|
||||||
AM_MAINTAINER_MODE
|
AM_MAINTAINER_MODE
|
||||||
@ -82,12 +82,6 @@ case $CSC in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
MSC="c:\Program Files (x86)\Microsoft Visual Studio .NET 2003\VC7"
|
|
||||||
MSCS="c:\Program Files (x86)\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK"
|
|
||||||
#JAVA="c:\j2sdk1.4.2\bin"
|
|
||||||
|
|
||||||
AC_SUBST(MSC)
|
|
||||||
AC_SUBST(MSCS)
|
|
||||||
AC_SUBST(CSC)
|
AC_SUBST(CSC)
|
||||||
AC_SUBST(CSC_EXEFLAG)
|
AC_SUBST(CSC_EXEFLAG)
|
||||||
AC_SUBST(CSC_LIBFLAG)
|
AC_SUBST(CSC_LIBFLAG)
|
||||||
|
Loading…
Reference in New Issue
Block a user