forked from TyrfingMjolnir/PS_ISO_Tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (27 loc) · 850 Bytes
/
Makefile
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
32
33
34
35
36
# -----------------------------------------------------------------
# PS ISO Tool MSYS/MINGW Makefile (uses GCC compiler)(CaptainCPS-X, 2013)
# -----------------------------------------------------------------
TARGET := bin/psiso_tool.exe
CC := g++
CXXFLAGS := -O1 -Wl,-subsystem,console -Wall -W
LDFLAGS := -static-libgcc -static-libstdc++
LIBS := -lkernel32 -lshell32 -luser32
INCLUDES := -Isource
SRCS := source/psiso_tool.cpp \
source/psiso_tool_main.cpp
OBJS := $(SRCS:.cpp=.o)
vpath %.cpp source
vpath %.obj source
.DEFAULT_GOAL := all
.PHONY : cleanup
cleanup :
@rm -fr $(OBJS)
@rm -fr $(TARGET)
all: $(TARGET)
$(TARGET): $(OBJS)
@echo "Linking object files ..."
@$(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
%.o: %.cpp
@echo "Compiling $(<F) $(@F) ..."
@echo.
@$(CC) $(CXXFLAGS) $(INCLUDES) -o $@ -c $<