[BACK]Return to Makefile.vc CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / windows / asir32gui

File: [local] / OpenXM_contrib2 / windows / asir32gui / Makefile.vc (download)

Revision 1.2, Tue Mar 17 14:58:23 2009 UTC (15 years, 2 months ago) by ohara
Branch: MAIN
CVS Tags: R_1_3_1-2
Changes since 1.1: +4 -4 lines

Macros CONSOLE, _WINDOWS,  WIN32, __WIN32__ and SILENT removed
if these are unused.

## $OpenXM: OpenXM_contrib2/windows/asir32gui/Makefile.vc,v 1.2 2009/03/17 14:58:23 ohara Exp $
## Makefile for Visual Studio 2008
##
## usage:
##    nmake -f Makefile.vc LANG=en
## or
##    nmake -f Makefile.vc LANG=ja

!if "$(LANG)" == "en" || "$(LANG)" == "C"
RESSRC = asir32gui.rc.EG
RES = asir32gui-en.res
ASIRGUI= asirgui-en.exe
!else
RESSRC = asir32gui.rc.JP
RES = asir32gui-ja.res
ASIRGUI= asirgui.exe
!endif

CFLAGS=-nologo -MT -W3 -EHsc -Ox -D NDEBUG -D _MBCS
CPPFLAGS=$(CFLAGS)
RFLAGS=-l 0x411 -d NDEBUG
LD=link
LDFLAGS= advapi32.lib -nologo -subsystem:windows -incremental:no
OBJS= FatalDialog.obj MainFrm.obj StdAfx.obj history.obj io.obj \
  asir32gui.obj asir32guiDoc.obj asir32guiView.obj

all: $(ASIRGUI)

$(ASIRGUI): $(OBJS) $(RES)
    $(LD) $(LDFLAGS) -out:$@ $**

$(RES): $(RESSRC)
	copy /y $(RESSRC) $*.rc
	$(RC) $(RFLAGS) -fo$@ $*.rc

clean:
	-@del *.obj
	-@del *.res
	-@del *.rc

distclean: clean
	-@del asirgui.exe
	-@del asirgui-en.exe