home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Windows Gam…ming Gurus (2nd Edition)
/
Disc2.iso
/
msdn_vcb
/
samples
/
vc98
/
sdk
/
dbmsg
/
mapi
/
cmc.cli
/
makefile
< prev
next >
Wrap
Makefile
|
1996-03-27
|
2KB
|
73 lines
# Makefile to build the Sample CMC Client
# Key to CPU specific conditions, CPU == i386 || ALPHA || MIPS || PPC
!IF "$(CPU)" == ""
!IF "$(PROCESSOR_ARCHITECTURE)" == "MIPS" || "$(PROCESSOR_ARCHITECTURE)" == "ALPHA" || "$(PROCESSOR_ARCHITECTURE)" == "PPC"
CPU = $(PROCESSOR_ARCHITECTURE)
!ELSE
CPU = i386
!ENDIF
!ENDIF
!include <win32.mak>
!IFNDEF NODEBUG
cflags = $(cflags) -DDEBUG
!ENDIF
!IFDEF MAPISAMP
HOME = $(MAPISAMP)\cmc.cli^\
COMMON = $(MAPISAMP)\common^\
rcvars = $(rcvars) /I$(HOME)
!ELSE
HOME =
COMMON = ..\common^\
!ENDIF
PROJ = CMCCLI32
# Main target dependencies
all: $(PROJ).exe
# Extra libraries needed, not defined in win32.mak
extralibs =
# Object files we need tp build
OBJS = cmccli.obj
COMMON_OBJS = pvalloc.obj
# Build the object files
{$(HOME)}.c.obj:
$(cc) -I$(COMMON) $(cdebug) $(cflags) $(cvarsmt) $**
pvalloc.obj: $(COMMON)pvalloc.c
$(cc) -I$(COMMON) $(cdebug) $(cflags) $(cvarsmt) $**
# Build the resources
$(PROJ).res: $(HOME)cmccli.rc $(HOME)cmccli.ico $(HOME)cmccli2.ico \
$(HOME)read.bmp $(HOME)unread.bmp $(HOME)reada.bmp \
$(HOME)unreada.bmp
$(rc) /I$(COMMON) $(rcflags) $(rcvars) /fo $(PROJ).res $(HOME)CMCCLI.RC
# Link it together to make the executable image
$(PROJ).exe: $(OBJS) $(COMMON_OBJS) $(PROJ).res
$(link) $(linkdebug) $(lflags) -subsystem:windows,$(APPVER) $(OBJS) \
$(COMMON_OBJS) $(PROJ).res $(guilibsmt) $(extralibs) -out:$(PROJ).exe
!IFDEF MAPISAMP
-copy $@ $(MAPISAMP)\bin\$(PLATFORM)
!ENDIF
# Clean up the intermediate files
clean:
-del *.obj
-del *.res
-del *.exe