Convert executable path to absolute path *before* invoking the helper DLL.
[setup-launcher.git] / Makefile
blobdb4078240992c852b9e29675692b42010a34f819
1 APPNAME = setup-launcher
3 .PHONY: all
5 all:
6 windres -DBUILD_EXE -o resources-exe.o resources.rc
7 windres -DBUILD_DLL -o resources-dll.o resources.rc
8 gcc -O2 -static -DBUILD_EXE -o $(APPNAME).exe -mwindows setup-launcher.c resources-exe.o
9 gcc -O2 -shared -DBUILD_DLL -o $(APPNAME).dll -Wl,--enable-stdcall-fixup setup-launcher.c resources-dll.o setup-launcher.def
10 strip $(APPNAME).exe
11 strip $(APPNAME).dll