63 lines
1.7 KiB
Common Lisp
63 lines
1.7 KiB
Common Lisp
include link$(xtra).$(PLAT)
|
|
|
|
########## all
|
|
all : $(BIN_NAME)
|
|
$(BIN_NAME) : $(OBJS)
|
|
@echo Linking $@ ...
|
|
@$(LINK_DEF_BLD)
|
|
$(LINK)
|
|
$(RM) $(LINKDEF)
|
|
$(PACK)
|
|
|
|
## The libs
|
|
ifeq ($(PLAT),w32)
|
|
ifneq ($(MODULE),util)
|
|
$(CP) $(BINDIR)$(basename $(BIN_NAME)).$(LIB) $(LIBDIR)
|
|
endif
|
|
endif
|
|
|
|
@echo
|
|
|
|
########## install
|
|
install :
|
|
@echo module Installing $< ...
|
|
|
|
## The binaries
|
|
ifeq ($(PLAT),w32)
|
|
ifeq ($(XTRA),md)
|
|
$(CD) $(INSTALLDIR)install/w32 && $(RM) *
|
|
$(CD) $(INSTALLDIR)sdk/w32 && $(RM) *
|
|
$(CP) $(BINDIR)$(basename $(BIN_NAME)).$(LIB) $(INSTALLDIR)sdk/w32
|
|
$(CP) $(SSOINC)micasa.h $(INSTALLDIR)sdk/w32
|
|
$(CP) $(SSOINC)micasa_mgmd.h $(INSTALLDIR)sdk/w32
|
|
endif
|
|
endif
|
|
|
|
## Linux final libs
|
|
ifeq ($(PLAT),lux)
|
|
ifeq ($(MODULE),shared)
|
|
$(CP) $(LIBDIR)$(XTRA)/lib$(TARGET).so.?.?.? $(INSTALLDIR)install/lux/opt/novell/CASA/lib
|
|
$(CD) $(INSTALLDIR)install/lux/opt/novell/CASA/lib && $(LN) $(INSTALLDIR)install/lux/opt/novell/CASA/lib/lib$(TARGET).so.$(BLD_NO) $(INSTALLDIR)install/lux/opt/novell/CASA/lib/lib$(TARGET).so
|
|
$(CD) $(INSTALLDIR)install/lux/opt/novell/CASA/lib && $(LN) $(INSTALLDIR)install/lux/opt/novell/CASA/lib/lib$(TARGET).so.$(BLD_NO) $(INSTALLDIR)install/lux/opt/novell/CASA/lib/lib$(TARGET).so.$(PROD_NUM)
|
|
|
|
endif
|
|
|
|
$(CP) $(SSOINC)micasa.h $(INSTALLDIR)install/lux/opt/novell/CASA_devel/include
|
|
$(CP) $(SSOINC)micasa_mgmd.h $(INSTALLDIR)install/lux/opt/novell/CASA_devel/include
|
|
endif
|
|
|
|
@echo
|
|
|
|
########## clean
|
|
clean :
|
|
@echo Cleaning ...
|
|
|
|
ifeq ($(PLAT),w32)
|
|
$(RM) *.err *.bak *.i *.res $(OBJDIR)*.$(O) $(OBJDIR)*.res $(OBJDIR)*.pdb $(BINDIR)$(basename $(BIN_NAME)).*
|
|
endif
|
|
|
|
ifeq ($(PLAT),lux)
|
|
$(RM) *.err *.bak *.i *.res $(OBJDIR)*.$(O) $(LIBDIR)$(TARGET)* $(BINDIR)$(TARGET)*
|
|
endif
|
|
|