jdp / tarn

A completely Lua-scriptable roguelike engine

This URL has Read+Write access

tarn / Makefile
100644 16 lines (13 sloc) 0.359 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CC = gcc
# libtcod doesn't have a 'make install' yet for whatever reason
# point this to your libtcod directory
LIBTCOD = /home/justin/src/libtcod-1.4.0
CFLAGS = -L$(LIBTCOD) -I$(LIBTCOD)/include
SRC = tarn.c
OBJ = ${SRC:.c=.o}
LIB = -llua5.1 -ltcod
OUT = tarn
 
$(OUT): $(OBJ)
$(CC) $(CFLAGS) -o $@ $(OBJ) $(LIB)
 
.c.o:
$(CC) $(CFLAGS) -c $<