view uninst/makefile.vc @ 5:5d4e598c4535

Initial changes for building with Windows. Win9x is no longer supported so remove code for that. Updated Makefiles for new Visual C options and 64bit support.
author Brian Smith <brian@dbsoft.org>
date Sun, 13 Nov 2011 08:43:10 -0600
parents 879c2819a48d
children 60042a92863e
line wrap: on
line source

# Uninst Makefile

#
# Configure settings for the target platform
#	Default to x86 if not specified
#
!if "$(TARGET_CPU)" == ""
TARGET_CPU=x86
!endif

WXDIR = $(WXWIN)
CC = cl
CFLAGS = -c -Zp1 -DWIN32 -D__WIN32__ -DMSVC -DENABLE_LOGGING -I. -I.. -I..\incace
CFLAGS_DEBUG = -Zi
CFLAGS_COMPILE = -MT
LIBS = wsock32.lib kernel32.lib user32.lib comctl32.lib gdi32.lib advapi32.lib shell32.lib comdlg32.lib ole32.lib msimg32.lib userenv.lib "$(REGINA_LANG_DIR)\lib\rexx.lib"

RES = 
LINKFLAGS = -machine:$(TARGET_CPU) -debug -debugtype:cv
DLLLINKFLAGS = -dll
LINK = link

OBJS = 	uninst.obj \
        ..\win\dw.obj
                
LINKOBJS = 	uninst.obj \
                dw.obj
                
all: dbuninst.exe

clean:
	-erase *.dll
        -erase *.exe
        -erase *.opt
        -erase *.lib
        -erase *.obj
        -erase *.map
        -erase *.pdb
        -erase *.ilk
        -erase *.exp
        -erase *.res
        -erase *~
        
dbuninst.exe: $(OBJS) sfxwin.res
	$(LINK) @<<
-out:$(@) -subsystem:windows -entry:WinMainCRTStartup
$(LINKFLAGS)
$(LINKOBJS)
$(LIBS)
..\sfxwin.res
<<

sfxwin.res: ..\sfxwin.rc
	rc -r -i.. ..\sfxwin.rc
        
.c.obj:
	$(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(CFLAGS_COMPILE) $*.c
        
.cpp.obj:
	$(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(CFLAGS_COMPILE) $*.cpp