@@ -3,7 +3,7 @@ INCDIR=include
3
3
4
4
CXX =cl /nologo
5
5
LD =link /nologo
6
- CXXFLAGS =/c /O1 /I$(INCDIR ) /W4 /Zi /DWIN32_LEAN_AND_MEAN /DWINVER=0x0501 /D_WIN32_WINNT=0x0501 /wd4100 /DUNICODE /D_UNICODE
6
+ CXXFLAGS =/c /O1 /I$(INCDIR ) /W4 /Zi /DWIN32_LEAN_AND_MEAN /DWINVER=0x0501 /D_WIN32_WINNT=0x0501 /wd4100 /DUNICODE /D_UNICODE /EHsc
7
7
LDFLAGS =/subsystem:windows /debug /manifest /incremental:no /opt:REF
8
8
LDFLAGS =$(LDFLAGS ) "/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'"
9
9
RC =rc /nologo
@@ -31,16 +31,24 @@ FILES=$(OUTDIR)\Zalgo.obj \
31
31
$(OUTDIR ) \NLSWrap.obj \
32
32
$(OUTDIR ) \MyDropTarget.obj \
33
33
$(OUTDIR ) \Zalgo.res
34
+ DISTS =$(DISTDIR ) \Zalgo.exe \
35
+ $(DISTDIR ) \hecomes.exe \
36
+ $(DISTDIR ) \hegoes.exe
34
37
35
- all : initdir $(DISTDIR ) \Zalgo.exe
38
+ CMDFILE =$(OUTDIR ) \ZalgoLib.obj \
39
+ $(OUTDIR ) \OptionParser.obj
40
+
41
+ all : initdir $(DISTS )
42
+ hecomes : $(DISTDIR ) \hecomes.exe
43
+ hecomes : $(DISTDIR ) \hegoes.exe
36
44
37
45
initdir :
38
- if not exist build md build
39
- if not exist $( OUTDIR) md $( OUTDIR)
40
- if not exist build md dist
41
- if not exist $( DISTDIR) md $( DISTDIR)
46
+ @ if not exist build md build
47
+ @ if not exist $(OUTDIR ) md $(OUTDIR )
48
+ @ if not exist build md dist
49
+ @ if not exist $(DISTDIR ) md $(DISTDIR )
42
50
43
- compress : $(DISTDIR ) \Zalgo.exe
51
+ compress : $(DISTS )
44
52
upx --best $* *
45
53
46
54
$(INCDIR ) \MainWindow.hpp : $(INCDIR ) \Window.hpp $(INCDIR ) \MyDropTarget.hpp $(INCDIR ) \PreviewWindow.hpp
@@ -57,6 +65,11 @@ $(SRCDIR)\Window.cpp: $(INCDIR)\Window.hpp
57
65
$(SRCDIR ) \NLSWrap.cpp : $(INCDIR ) \NLSWrap.hpp
58
66
$(SRCDIR ) \MainLogic.cpp : $(INCDIR ) \MainWindow.hpp $(INCDIR ) \NLSWrap.hpp $(INCDIR ) \ConversionData.inc
59
67
68
+ $(SRCDIR ) \ZalgoLib.cpp : $(INCDIR ) \ZalgoLib.h $(INCDIR ) \ConversionData.inc
69
+ $(SRCDIR ) \OptionParser.cpp : $(INCDIR ) \OptionParser.h
70
+ $(SRCDIR ) \hecomes.cpp : $(INCDIR ) \OptionParser.h $(INCDIR ) \ZalgoLib.h
71
+ $(SRCDIR ) \hegoes.cpp : $(INCDIR ) \OptionParser.h $(INCDIR ) \ZalgoLib.h
72
+
60
73
$(OUTDIR ) \Zalgo.res : Zalgo.rc res\x-sampa.txt res\init.txt
61
74
$(RC ) $(RCFLAGS ) /fo$@ Zalgo.rc
62
75
@@ -66,3 +79,9 @@ $(OUTDIR)\Zalgo.res: Zalgo.rc res\x-sampa.txt res\init.txt
66
79
$(DISTDIR ) \Zalgo.exe : $(FILES )
67
80
$(LD ) /out:$@ $(LDFLAGS ) $* * $(LIBS )
68
81
mt.exe -nologo -manifest $@ .manifest -outputresource:$@ ; 1 && del $@ .manifest || set ERRORLEVEL=0
82
+
83
+ $(DISTDIR ) \hecomes.exe : $(CMDFILE ) $(OUTDIR ) \hecomes.obj
84
+ $(LD ) /out:$@ $* *
85
+
86
+ $(DISTDIR ) \hegoes.exe : $(CMDFILE ) $(OUTDIR ) \hegoes.obj
87
+ $(LD ) /out:$@ $* *
0 commit comments