Merge branch 'reduce-cpu'
[hex-a-hop.git] / Makefile
blobd2975c4274159b3d2caacd2a5ba1c608346cccc6
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
7 GCC =g++
8 CXXSOURCES = gfx.cpp hex_puzzzle.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` -lm \
21 -o $(NAME)
23 clean :
24 rm -f *~ $(OBJS) $(NAME)