This repository has been archived by the owner on May 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmakefile.mingw
31 lines (25 loc) · 1.61 KB
/
makefile.mingw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
CXX = i686-w64-mingw32.static-g++
CXXFLAGS = -O2 -std=c++11 -ffast-math -s -static -static-libstdc++ -DALLEGRO_STATICLINK
LDFLAGS = -Wl,--subsystem,windows -lpugixml -lsamplerate \
-Lallegro5/lib -L/opt/mxe/usr/i686-w64-mingw32.static/lib -lallegro_dialog-static -lallegro-static \
-lallegro_main-static -ljpeg -lpng -lz -lallegro_image-static -lallegro_font-static -lallegro_primitives-static -lallegro_audio-static \
-ldsound -lgdiplus -luuid -lkernel32 -lwinmm -lpsapi -lopengl32 -lglu32 -luser32 -lcomdlg32 \
-lgdi32 -lshell32 -lole32 -ladvapi32 -lws2_32 -lshlwapi -lwebp
INCLUDE = -I. -I/usr/lib/mxe/usr/i686-w64-mingw32.static/ -Iallegro5/include -Iallegro5/addons/audio \
-Iallegro5/addons/image -Iallegro5/addons/font \
-Iallegro5/addons/primitives -Iallegro5/addons/native_dialog -Iallegro5/addons/main \
DEPS = bintracker.h helper_func.h gui/gui.h gui/worktune.h libmdal/mdal.h data_as/mdatas.h\
sound_emul/sound_emul.h sound_emul/machines/vm.h sound_emul/machines/zxspectrum48.h sound_emul/machines/CPU/z80.h
OBJ = bintracker.o helper_func.o\
gui/elements.o gui/events.o gui/file_io.o gui/gui.o gui/input.o gui/keyhandler.o gui/mousehandler.o gui/status.o gui/work_tune.o\
libmdal/module.o libmdal/config.o libmdal/sequence.o libmdal/blocks.o libmdal/field.o libmdal/command.o\
data_as/data_as.o\
sound_emul/sound_emul.o\
sound_emul/machines/zxspectrum48.o sound_emul/machines/CPU/z80.o sound_emul/machines/CPU/z80instructions.o
bintracker.exe: $(OBJ)
$(CXX) $(CXXFLAGS) -o $@ $^ $(INCLUDE) $(LDFLAGS)
%.o: %.cpp $(DEPS)
$(CXX) $(INCLUDE) -c $(CXXFLAGS) -o $@ $<
.PHONY: clean
clean:
rm $(OBJ)