forked from CleverRaven/Cataclysm-DDA
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Software. New missions. Hospitals. Bugfixes.
- Loading branch information
Showing
35 changed files
with
2,227 additions
and
1,091 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# comment these to toggle them as one sees fit. | ||
# WARNINGS will spam hundreds of warnings, mostly safe, if turned on | ||
# DEBUG is best turned on if you plan to debug in gdb -- please do! | ||
# PROFILE is for use with gprof or a similar program -- don't bother generally | ||
#WARNINGS = -Wall | ||
#DEBUG = -g | ||
#PROFILE = -pg | ||
|
||
ODIR = objwin | ||
DDIR = .deps | ||
|
||
TARGET = cataclysm.exe | ||
|
||
CXX = i486-mingw32-g++ | ||
|
||
LINKER = i486-mingw32-ld | ||
LINKERFLAGS = -Wl,-stack,12000000,-subsystem,windows | ||
|
||
CFLAGS = $(WARNINGS) $(DEBUG) $(PROFILE) | ||
|
||
LDFLAGS = -static -lgdi32 | ||
|
||
#ifeq ($(OS), Msys) | ||
#LDFLAGS = -static -lpdcurses | ||
#else | ||
#LDFLAGS = -lncurses | ||
#endif | ||
|
||
SOURCES = $(wildcard *.cpp) | ||
_OBJS = $(SOURCES:.cpp=.o) | ||
OBJS = $(patsubst %,$(ODIR)/%,$(_OBJS)) | ||
|
||
all: $(TARGET) | ||
@ | ||
|
||
$(TARGET): $(ODIR) $(DDIR) $(OBJS) | ||
$(CXX) $(LINKERFLAGS) -o $(TARGET) $(CFLAGS) $(OBJS) $(LDFLAGS) | ||
|
||
$(ODIR): | ||
mkdir $(ODIR) | ||
|
||
$(DDIR): | ||
@mkdir $(DDIR) | ||
|
||
$(ODIR)/%.o: %.cpp | ||
$(CXX) $(CFLAGS) -c $< -o $@ | ||
|
||
clean: | ||
rm -f $(TARGET) $(ODIR)/*.o | ||
|
||
-include $(SOURCES:%.cpp=$(DEPDIR)/%.P) |
Oops, something went wrong.