NT4/private/wangview/norway/wangcmn/makefile.sav
2020-09-30 17:12:29 +02:00

199 lines
5.0 KiB
Plaintext

###########################################################################
#
# Norway standard makefile for: pagedll
# Copyright (c) 1995 - Wang Labratories
#
###########################################################################
NAME = wangcmn
TARGET = $(NAME).dll
###########################################################################
#
# Include wang.mak for common code.
#
###########################################################################
!INCLUDE ..\include\wang.mak
###########################################################################
#
# Set up standard targets. The default target builds the target for this
# module (a .dll, .ocx, etc). The other targets are used by the system
# build procedures.
#
###########################################################################
all: mktmpdirs $(OBJDIRSL)$(NAME).DLL
lib: mktmpdirs $(OBJDIRSL)$(NAME).lib
bin: mktmpdirs $(OBJDIRSL)$(NAME).dll
installlib: lib helpfiles
copy $(OBJDIRSL)$(NAME).lib $(INSTALLLIB)
copy $(OBJDIRSL)$(NAME).exp $(INSTALLLIB)
!IF "$(SKIP_HELP)" == ""
copy hlp\*.hm $(INSTALLHELP)
!ENDIF
installbin: bin
copy $(OBJDIRSL)$(NAME).dll $(INSTALLLIB)
!IF "$(RELBLD)" == ""
copy $(OBJDIRSL)$(NAME).pdb $(INSTALLLIB)
!ENDIF
cleanall:
-del $(OBJDIRSL)*.obj
-del $(OBJDIRSL)*.ilk
-del $(OBJDIRSL)*.res
-del $(OBJDIRSL)*.tlb
-del $(OBJDIRSL)*.lib
-del $(OBJDIRSL)*.dll
-del $(OBJDIRSL)*.pch
-del $(OBJDIRSL)*.exp
-del $(OBJDIRSL)*.pdb
-del $(OBJDIRSL)*.map
-del hlp\*.hm
mktmpdirs:
!IF "$(MS_BUILD)" != ""
-mkdir $(OBJDIR)
-mkdir $(INSTALLLIB)
!ENDIF
###########################################################################
#
# File Definitions: All relevant files are listed here.
#
###########################################################################
OBJ_NO_PCH =
OBJ_MAKE_PCH = $(OBJDIRSL)stdafx.obj
OBJ_USE_PCH = $(OBJDIRSL)WangCmn.obj \
$(OBJDIRSL)SIZEPGE.OBJ \
$(OBJDIRSL)PAGESHT.OBJ \
$(OBJDIRSL)COMPPGE.OBJ \
$(OBJDIRSL)RSLTNPGE.OBJ \
$(OBJDIRSL)FTYPPGE.OBJ \
$(OBJDIRSL)COLORPGE.OBJ \
$(OBJDIRSL)EDITVAL.OBJ\
$(OBJDIRSL)NORVARNT.OBJ \
$(OBJDIRSL)NORERMAP.OBJ
OBJ_FILES = $(OBJ_NO_PCH) $(OBJ_MAKE_PCH) $(OBJ_USE_PCH)
RES_FILES = $(OBJDIRSL)$(NAME).res
MTL_FILES =
DEF_FILES = $(NAME).def
PCH_BASE = stdafx.h
PCH_FILE = stdafx.pch
HDRS = $(PCH_BASE)
SYSTEM_LIBS = $(SYSTEM_LIBS_DOR)
OUR_LIBS_DEP =
OUR_LIBS =
LIBS = $(SYSTEM_LIBS) $(OUR_LIBS)
###########################################################################
#
# Flags which differ for debugging vs. release builds. In all cases,
# we use the standard macro name, suffixed by _DOR (Debug Or Release).
#
###########################################################################
!IF "$(RELBLD)" == ""
!MESSAGE Debugging Build
CFLAGS_DOR = /Zi /Od
CDEFINES_DOR = /D"_DEBUG"
SYSTEM_LIBS_DOR =
LFLAGS_DOR = /DEBUG /DEBUGTYPE:cv
LIBFLAGS_DOR = /DEBUGTYPE:cv
RC_FLAGS_DOR = /d_DEBUG
MTL_FLAGS_DOR = /Zi
MAPFILE_DOR = /map:$(OBJDIRSL)$(NAME).map
!ELSE
!MESSAGE Release Build
CFLAGS_DOR = /O2
CDEFINES_DOR = /D"NDEBUG"
SYSTEM_LIBS_DOR =
LFLAGS_DOR =
LIBFLAGS_DOR =
RC_FLAGS_DOR = /dNDEBUG
MTL_FLAGS_DOR =
MAPFILE_DOR =
!ENDIF
###########################################################################
#
# Flags for compilation, resource file processing, and linking
#
###########################################################################
CFLAGS = /c /GX /W3 /MD /nologo $(CFLAGS_DOR) $(CpuOptFlags)
CDEFINES = /D"_WINDOWS" /D"WIN32" /D"_WINDLL" /D"_AFXDLL" /D"_AFXCTL" /D"_MBCS" $(CDEFINES_DOR)
CFILESPEC = $(OBJOUTPUT) /Fp$(OBJDIRSL)$(PCH_FILE) /Fd$(OBJDIRSL)$(NAME).pdb
LFLAGS = /DLL /NOLOGO /SUBSYSTEM:windows,4.0 $(LFLAGS_DOR)
LIBFLAGS = /NOLOGO $(LIBFLAGS_DOR)
RC_FLAGS = /r /d, /dWIN32 $(RC_FLAGS_DOR) /Fo $(RES_FILES) /i $(OBJDIR_SEARCH)
MTL_FLAGS = /tlb $(MTL_FILES)
MAPFILE = $(MAPFILE_DOR)
###########################################################################
#
# Transformation Rules
#
###########################################################################
$(OBJ_MAKE_PCH): $(*B).cpp $(HDRS) $(OBJ_NO_PCH)
cl $(CFLAGS) $(CDEFINES) $(CFILESPEC) -Yc$(PCH_BASE) $(*B).cpp
$(OBJ_USE_PCH): $(OBJ_MAKE_PCH) $(*B).cpp
cl $(CFLAGS) $(CDEFINES) $(CFILESPEC) -Yu$(PCH_BASE) $(*B).cpp
$(RES_FILES): $(*B).rc $(HDRS)
rc $(RC_FLAGS) $(NAME).rc
!IF "$(SKIP_HELP)" == ""
helpfiles: hlp\wangcmn.hm
hlp\wangcmn.hm: resource.h
makehelp
!ELSE
helpfiles:
!ENDIF
$(OBJDIRSL)$(NAME).dll: $(RES_FILES) $(DEF_FILES) $(OUR_LIBS_DEP) $(OBJ_FILES) $(OBJDIRSL)$(NAME).lib
link @<<
$(LFLAGS)
/out:$(OBJDIRSL)$(TARGET)
$(OBJDIRSL)$(NAME).exp
$(OBJ_FILES)
$(MAPFILE)
$(RES_FILES)
$(LIBS)
<<
$(OBJDIRSL)$(NAME).lib: $(RES_FILES) $(DEF_FILES) $(OBJ_FILES) makefile
lib @<<
/def:$(DEF_FILES)
$(LIBFLAGS)
/out:$(OBJDIRSL)$(NAME).lib
$(OBJ_FILES)
$(RES_FILES)
<<
$(PROJ).bsc: $(SBRS)
bscmake /o$(NAME).bsc $(SBRS)