Skip to content

Commit

Permalink
Use $(CXX) in GNUmakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
qsantos committed Mar 8, 2024
1 parent 23aecf0 commit 3fdf5dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ OBJ = creatwth.o detours.o disasm.o modules.o
all: timeskew.zip

%.o: $(SRCD)/%.cpp
g++ -c -w -O3 -isystem$(SRCD) $< -o $@
$(CXX) -c -w -O3 -isystem$(SRCD) $< -o $@

timeskew.dll: timeskew.cpp $(OBJ)
g++ -shared -o $@ -isystemDetours/src $^ -lmincore -luser32 -static-libgcc -static-libstdc++ -static
$(CXX) -shared -o $@ -isystemDetours/src $^ -lmincore -luser32 -static-libgcc -static-libstdc++ -static

timeskew.exe: withdll.cpp $(OBJ)
@# For some reason, compiling Detours to object files first lead to multiple definitions of StringCchPrintfA, StringCchPrintfW
g++ -o $@ -isystemDetours/src $^ -Wl,--allow-multiple-definition -static-libgcc -static-libstdc++ -static
$(CXX) -o $@ -isystemDetours/src $^ -Wl,--allow-multiple-definition -static-libgcc -static-libstdc++ -static

timeskew.zip: timeskew.exe timeskew.dll
zip -r $@ $^
Expand Down

0 comments on commit 3fdf5dd

Please sign in to comment.