From: <and...@us...> - 2003-10-21 03:04:22
|
Update of /cvsroot/husky/hptutil/make In directory sc8-pr-cvs1:/tmp/cvs-serv19672 Added Files: makefile.mvc makefile.mvcdll Log Message: Fix MSVC compilation --- NEW FILE: makefile.mvc --- # $Id: makefile.mvc,v 1.1 2003/10/21 02:10:22 andr_lukyanov Exp $ # # Microsoft Visual C++ Makefile for build static program(s) # No support for the Husky build environment. # # Tested on MS Visual C 6.0 # include makefile.inc ## programs ## CC = cl AR = lib LINK = link RANLIB = RM = del ## file suffixes ## _C = .c _OBJ = .obj _EXP = .exp _LIB = .lib _DLL = .dll _EXE = .exe ## programs ## CFLAGS = -nologo -Zp1 CINCL = -I$(H_DIR) -I..\..\fidoconf -I..\..\smapi -I..\..\huskylib CDEFS = -D__NT__ -DNT -DWINNT -DWIN32 -D_CONSOLE COPT = -Ob2 EXENAMEFLAG = -Fe LIBS = ..\..\fidoconf\make\fconfmvc.lib ..\..\smapi\make\smapimvc.lib \ ..\..\huskylib\make\huskymvc.lib default: @echo Run 'make programs' to build static version of programs ($(PROGRAMS)) @echo Run 'make all' to build all above all: programs programs: $(PROGRAMS) {$(_SRC_DIR)}$(_C)$(_OBJ): @$(CC) $(CFLAGS) $(CINCL) $(CDEFS) $(COPT) -c $< $(PROGRAMS): $(OBJS) @echo Create $(PROGRAMS)... @$(CC) $(CFLAGS) $(CINCL) $(COPT) $(CDEFS) $(EXENAMEFLAG)$@ $** $(LIBS) man: doc: man man2html$(_EXE) <..\$(LIBNAME).1 >$(LIBNAME).html clean: -$(RM) $(RMOPT) *$(_OBJ) distclean: clean -$(RM) $(RMOPT) $(PROGRAMS) -$(RM) $(RMOPT) $(LIBNAME).html install: programs doc $(INSTALL) $(IBOPT) $(PROGRAMS) $(BINDIR) $(INSTALL) $(IBOPT) ..\$(LIBNAME).1 $(DOCDIR) $(INSTALL) $(IBOPT) $(LIBNAME).html $(DOCDIR) uninstall: -$(RM) $(RMOPT) $(BINDIR)\$(PROGRAMS) -$(RM) $(RMOPT) $(DOCDIR)\$(LIBNAME).html --- NEW FILE: makefile.mvcdll --- # $Id: makefile.mvcdll,v 1.1 2003/10/21 02:10:22 andr_lukyanov Exp $ # # Microsoft Visual C++ Makefile for build dinamic program(s) # No support for the Husky build environment. # # Tested on MS Visual C 6.0 # include makefile.inc ## programs ## CC = cl AR = lib LINK = link RANLIB = RM = del ## file suffixes ## _C = .c _OBJ = .obj _EXP = .exp _LIB = .lib _DLL = .dll _EXE = .exe ## programs ## CFLAGS = -nologo -MD -Zp1 CINCL = -I$(H_DIR) -I..\..\fidoconf -I..\..\smapi -I..\..\huskylib CDEFS = -D__NT__ -DNT -DWINNT -DWIN32 -D_CONSOLE COPT = -Ob2 EXEFLAGS= /link /opt:nowin98 EXENAMEFLAG = -Fe LIBS = ..\..\fidoconf\make\fconfmvc.lib ..\..\smapi\make\smapimvc.lib \ ..\..\huskylib\make\huskymvc.lib \ USER32.LIB msvcrt.lib Kernel32.lib default: @echo Run 'make programs' to build dinamic version of programs ($(PROGRAMS)) @echo Run 'make all' to build all above all: programs programs: $(PROGRAMS) {$(_SRC_DIR)}$(_C)$(_OBJ): @$(CC) $(CFLAGS) $(CINCL) $(CDEFS) $(COPT) -c $< $(PROGRAMS): $(OBJS) @echo Create $(PROGRAMS)... @$(CC) $(CFLAGS) $(CINCL) $(COPT) $(CDEFS) $(EXENAMEFLAG)$@ $** $(LIBS) $(EXEFLAGS) man: doc: man man2html$(_EXE) <..\$(LIBNAME).1 >$(LIBNAME).html clean: -$(RM) $(RMOPT) *$(_OBJ) distclean: clean -$(RM) $(RMOPT) $(PROGRAMS) -$(RM) $(RMOPT) $(LIBNAME).html install: programs doc $(INSTALL) $(IBOPT) $(PROGRAMS) $(BINDIR) $(INSTALL) $(IBOPT) ..\$(LIBNAME).1 $(DOCDIR) $(INSTALL) $(IBOPT) $(LIBNAME).html $(DOCDIR) uninstall: -$(RM) $(RMOPT) $(BINDIR)\$(PROGRAMS) -$(RM) $(RMOPT) $(DOCDIR)\$(LIBNAME).html |