Compile using gettext by default
[hex-a-hop.git] / Makefile
blob001a56583a347a9abb1541f08bff9c4583c9eca6
1 # Makefile for Hex-a-hop, Copyright Oliver Pearce 2004
2 NAME = Hex-a-hop
3 VERSION = 1.0.0
4 CC = gcc
5 DATA_DIR="."
6 CXXFLAGS += -Wall -W -g -DUSE_GETTEXT
7 GCC =g++
8 CXXSOURCES = gfx.cpp hex_puzzzle.cpp i18n.cpp
9 #INCLUDES =
12 #############################################################
14 OBJS=$(CXXSOURCES:.cpp=.o)
16 %.o : %.cpp
17 $(GCC) $(CXXFLAGS) -D_VERSION=\"$(VERSION)\" -DDATA_DIR=\"$(DATA_DIR)\" `sdl-config --cflags` -c -o $@ $<
19 $(NAME) : $(OBJS)
20 $(GCC) $(CXXFLAGS) $(OBJS) `sdl-config --libs` -lSDL_Pango -lm \
21 -o $(NAME)
23 clean :
24 rm -f *~ $(OBJS) $(NAME)