summaryrefslogtreecommitdiff
path: root/trunk/Makefile
blob: 62702de083d66092df8c51a4cd8291fbe70ad472 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
AR = ar
CC = gcc
LD = gcc
ARFLAGS = -cru
CFLAGS = -Wall -Wextra -Wundef -Wpointer-arith -Wcast-align \
	-Wwrite-strings \
	 -Wnested-externs -Werror -pedantic -std=c99
LDFLAGS = -L./
#-Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes

example: libsprite.a example.o
	${LD} -g -o $@ example.o ${LDFLAGS} -lsprite 

libsprite.a: libsprite.o
	${AR} ${ARFLAGS} libsprite.a libsprite.o

%.o: %.c
	${CC} -c -g ${CFLAGS} -o $@ $<