From: Elfy <nic...@us...> - 2010-03-27 16:13:06
|
Update of /cvsroot/husky/sqpack/make In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv15641 Added Files: makefile.inc makefile.mvc Log Message: New msvc makefile for mvc 6.0 and newer, both dll and lib build. It uses husky build environment. --- NEW FILE: makefile.mvc --- # $Id: makefile.mvc,v 1.1 2010/03/27 16:12:58 nick_voronin Exp $ # # Microsoft Visual C++ Makefile for build sqpack ## include common makefiles part ## !include makefile.inc !include ../../huskymak.cfg ## program options ## ## options for compiler ## CINCL = -I$(H_DIR) -I..\..\huskylib -I..\..\fidoconf -I..\..\smapi CFLAGS = $(CFLAGS) $(CINCL) ## options for linker ## LFLAGS=$(LFLAGS) $(LINKPDBOPT)$(BINOUT) LDLLFLAGS=$(LDLLFLAGS) $(LINKNAMEOPT)$(TARGETDLL) \ $(LINKPDBOPT)$(BINOUT) /implib:"$(DLLIMPORTLIB)" # List of HUSKY libraries required to build binary file(s) # for executables -- $(LIBSL) # for dynamic libraries -- $(DLLS) !if $(DYNLIBS)==1 LIBSL = $(LIBS) \ $(IMPLIBPREFIX)fidoconfig$(DLLSUFFIX)$(_LIB) \ $(IMPLIBPREFIX)smapi$(DLLSUFFIX)$(_LIB) \ $(IMPLIBPREFIX)husky$(DLLSUFFIX)$(_LIB) !else LIBSL = $(LIBS) \ $(LIBPREFIX)fidoconfig$(LIBSUFFIX)$(_LIB) \ $(LIBPREFIX)smapi$(LIBSUFFIX)$(_LIB) \ $(LIBPREFIX)husky$(LIBSUFFIX)$(_LIB) !endif default: @echo Set DYNLIBS=1 in huskymak.cfg to build dynamic version of program @echo Run 'make all' to build ($(PROGRAMS)) programs: $(PROGRAMS) all: programs $(OBJS) $(PRGOBJS) : $(HEADERS) makefile.mvc ../../huskymak.cfg makefile.inc {$(_SRC_DIR)}$(_C){$(O)}$(_OBJ):: @$(CC) $(CFLAGS) $(OBJOPT) $(OBJNAMEOPT)$(O) @<< $< << $(SQPACK): $(OBJS) @echo Create $(SQPACK)... @$(LINK) $(LFLAGS) $(LINKNAMEOPT)$@ $** $(LIBSL) #man: #doc: man # man2html$(_EXE) <..\$(LIBNAME).1 >$(LIBNAME).html clean: -$(RM) $(RMOPT) VC*$(_PDB) -$(RM) $(RMOPT) $(OBJS:/=\) -$(RM) $(RMOPT) $(PROGRAMSILK:/=\) distclean: clean -$(RM) $(RMOPT) $(PROGRAMSPDB:/=\) -$(RM) $(RMOPT) $(PROGRAMS:/=\) --- NEW FILE: makefile.inc --- # $Id: makefile.inc,v 1.1 2010/03/27 16:12:58 nick_voronin Exp $ # # Common makefiles part (include-file) for sqpack # Use defines before including this file: # _OBJ object files suffix begins with point (".o", ".obj", ... ) # _LIB library files suffix begins with point (".a", ".lib", ... ) # _DLL dinamic linking library files suffix begins with point (".dll", ".so", ...) # LIBPREFIX library filename prefix ("lib", "", ...) # LIBSUFFIX library filename suffix (compiler ID, three characters, somewhere empty) # DLLPREFIX dinamic linking library prefix (usually empty) # DLLSUFFIX dinamic linking library suffix (compiler ID or empty) # O, B, L, H prefixes to use with names of objects, binaries, libraries and headers respectively # Module name LIBNAME = sqpack # Version VERMAJOR= 1 VERMINOR= 9 VERPATCH= 0 VERH = $(VERMAJOR).$(VERMINOR) VER = $(VERH).$(VERPATCH) # Sources directory _SRC_DIR= ../ # Headers directory H_DIR = ../ # Programm name SQPACK = $(B)pktinfo$(_EXE) # Object files (please sort list to easy check by human) OBJS = $(O)sqpack$(_OBJ) # Header files HEADERS = $(H)cvsdate.h $(H)version.h # Binary file(s) to build from sources PROGRAMS= $(SQPACK) # List of libraries required to build binary file(s) LIBS = |