File: Makefile

package info (click to toggle)
hex-a-hop 0.0.20070315-8
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 3,668 kB
  • ctags: 705
  • sloc: cpp: 5,296; ansic: 153; makefile: 148
file content (23 lines) | stat: -rw-r--r-- 487 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Makefile for Hex-a-hop, Copyright Oliver Pearce 2004
NAME		= Hex-a-hop
VERSION		= 1.0.0
CC		= gcc
CXXFLAGS		+= -D_VERSION=\"$(VERSION)\" -g
GCC =g++
CXXSOURCES	= gfx.cpp hex_puzzzle.cpp
#INCLUDES	= 


#############################################################

OBJS=$(CXXSOURCES:.cpp=.o)

%.o	: %.cpp
	$(GCC) $(CXXFLAGS)  `sdl-config --cflags`  -c -o $@ $<
	
$(NAME) : $(OBJS)
		$(GCC) $(CXXFLAGS) $(OBJS)  `sdl-config --libs` -lm  \
		-o $(NAME)

clean :
	rm -f *~ $(OBJS) $(NAME)