mirror of
https://github.com/quantum5/Zalgo.git
synced 2025-04-24 05:31:58 -04:00
Added GCC Makefile.
This commit is contained in:
parent
19eb082fd6
commit
1f1e1196ca
60
GNUmakefile
Normal file
60
GNUmakefile
Normal file
|
@ -0,0 +1,60 @@
|
|||
ifdef CROSS
|
||||
override CROSS+=-
|
||||
endif
|
||||
CXX=$(CROSS)g++
|
||||
RC=$(CROSS)windres
|
||||
|
||||
ifdef OLDGCC
|
||||
override CXX += -std=c++0x
|
||||
else
|
||||
override CXX += -std=c++11
|
||||
endif
|
||||
|
||||
LINK = $(CXX)
|
||||
CFLAGS = -O3 -Iinclude -DUNICODE -D_UNICODE -DWIN32_LEAN_AND_MEAN -DWINVER=0x0501 -D_WIN32_WINNT=0x0501 -march=i686 -fpermissive
|
||||
RCFLAGS = -Iinclude
|
||||
LDFLAGS = -s -static -static-libstdc++ -mwindows
|
||||
LIBS=-lgdi32 -lole32 -lcomctl32 -luuid -lcomdlg32
|
||||
|
||||
FILES=build/Keyboard.o build/MainWindow.o build/Window.o \
|
||||
build/PianoControl.o build/midifile.o build/resources.o
|
||||
FILES=build/Zalgo.o build/MainWindow.o build/Window.o \
|
||||
build/DropTarget.o build/MainLogic.o build/MainLoadSave.o \
|
||||
build/PreviewWindow.o build/NLSWrap.o build/MyDropTarget.o \
|
||||
build/Zalgores.o
|
||||
all: initdir Zalgo.exe
|
||||
|
||||
initdir:
|
||||
[ -d build ] || mkdir build
|
||||
|
||||
Zalgo.exe: $(FILES)
|
||||
$(LINK) $(CFLAGS) $(LDFLAGS) $(FILES) -o $@ $(LIBS)
|
||||
|
||||
include/MainWindow.hpp: include/Window.hpp include/PreviewWindow.hpp
|
||||
include/PreviewWindow.hpp: include/Window.hpp
|
||||
include/MyDropTarget.h: include/DropTarget.h
|
||||
|
||||
build/Zalgo.o: src/Zalgo.cpp include/MainWindow.hpp
|
||||
build/MainWindow.o: src/MainWindow.cpp include/MainWindow.hpp
|
||||
build/MainLoadSave.o: src/MainLoadSave.cpp include/MainWindow.hpp
|
||||
build/MainLogic.o: src/MainLogic.cpp include/MainWindow.hpp include/NLSWrap.hpp include/ConversionData.inc
|
||||
build/Window.o: src/Window.cpp include/Window.hpp
|
||||
build/DropTarget.o: src/DropTarget.cpp include/DropTarget.hpp
|
||||
build/DropTarget.o: src/MyDropTarget.cpp include/MyDropTarget.hpp
|
||||
build/PreviewWindow.o: src/PreviewWindow.cpp include/PreviewWindow.hpp
|
||||
build/NLSWrap.o: src/NLSWrap.cpp include/NLSWrap.hpp
|
||||
|
||||
build/ZalgoLib.o: src/ZalgoLib.cpp include/ZalgoLib.h include/ConversionData.inc
|
||||
build/OptionParser.o: src/OptionParser.cpp include/OptionParser.h
|
||||
build/hecomes.o: src/hecomes.cpp include/OptionParser.h include/ZalgoLib.h
|
||||
build/hegoes.o: src/hegoes.cpp include/OptionParser.h include/ZalgoLib.h
|
||||
|
||||
build/Zalgores.o: Zalgo.rc include/resource.h commctrl6.manifest
|
||||
$(RC) $(RCFLAGS) $< -o $@
|
||||
|
||||
build/%.o: src/%.cpp
|
||||
$(CXX) $(CFLAGS) -c $< -o $@
|
||||
|
||||
clean:
|
||||
rm -f build/*.o
|
||||
rm -f Zalgo.exe
|
2
Makefile
2
Makefile
|
@ -69,7 +69,7 @@ $(SRCDIR)\OptionParser.cpp: $(INCDIR)\OptionParser.h
|
|||
$(SRCDIR)\hecomes.cpp: $(INCDIR)\OptionParser.h $(INCDIR)\ZalgoLib.h
|
||||
$(SRCDIR)\hegoes.cpp: $(INCDIR)\OptionParser.h $(INCDIR)\ZalgoLib.h
|
||||
|
||||
$(OUTDIR)\Zalgo.res: Zalgo.rc res\x-sampa.txt res\init.txt
|
||||
$(OUTDIR)\Zalgo.res: Zalgo.rc res\x-sampa.txt res\init.txt commctrl6.manifest
|
||||
$(RC) $(RCFLAGS) /fo$@ Zalgo.rc
|
||||
|
||||
{$(SRCDIR)}.cpp{$(OUTDIR)}.obj::
|
||||
|
|
8
Zalgo.rc
8
Zalgo.rc
|
@ -1,7 +1,7 @@
|
|||
#include <resource.h>
|
||||
|
||||
RID_ICON ICON Zalgo.ico
|
||||
RID_XSAMPA ZALGO_TEXT "res\\x-sampa.txt"
|
||||
RID_INIT ZALGO_TEXT "res\\init.txt"
|
||||
RID_LOOSE ZALGO_TEXT "res\\loose.txt"
|
||||
1 24 "res\\commctrl6.manifest"
|
||||
RID_XSAMPA ZALGO_TEXT "res/x-sampa.txt"
|
||||
RID_INIT ZALGO_TEXT "res/init.txt"
|
||||
RID_LOOSE ZALGO_TEXT "res/loose.txt"
|
||||
1 24 "res/commctrl6.manifest"
|
||||
|
|
15
commctrl6.manifest
Normal file
15
commctrl6.manifest
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
|
||||
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<security>
|
||||
<requestedPrivileges>
|
||||
<requestedExecutionLevel level='asInvoker' uiAccess='false' />
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
<dependency>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*' />
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
</assembly>
|
Loading…
Reference in a new issue