Mercurial > install
view sfxace/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
# SFX 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 -I..\platform -I"$(REGINA_LANG_DIR)\include" 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 = globals.obj \ uac_comm.obj \ uac_crc.obj \ uac_crt.obj \ uac_dcpr.obj \ uac_sys.obj \ unace.obj \ ..\win\dirent.obj \ ..\win\dw.obj \ ..\install.obj \ ..\rexx.obj \ ..\instsup.obj \ ..\win32sup.obj LINKOBJS = globals.obj \ uac_comm.obj \ uac_crc.obj \ uac_crt.obj \ uac_dcpr.obj \ uac_sys.obj \ unace.obj \ dirent.obj \ dw.obj \ install.obj \ rexx.obj \ instsup.obj \ win32sup.obj all: sfxwin.exe clean: -erase *.dll -erase *.exe -erase *.opt -erase *.lib -erase *.obj -erase *.map -erase *.pdb -erase *.ilk -erase *.exp -erase *.res -erase *~ sfxwin.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