summaryrefslogtreecommitdiff
path: root/trunk/Makefile
blob: e6e712e382dfacb0bff98742d316e2d2cd23bcfd (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 -lSDL

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

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