Skip to content

Commit

Permalink
Software. New missions. Hospitals. Bugfixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Whales committed Dec 15, 2011
1 parent 00584a1 commit d2d1653
Show file tree
Hide file tree
Showing 35 changed files with 2,227 additions and 1,091 deletions.
51 changes: 51 additions & 0 deletions Makefile.Windows
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)
Loading

0 comments on commit d2d1653

Please sign in to comment.