view test/automated/Makefile @ 3712:916469fbdc29 gsoc2009_unit_tests

Make makefile a bit more complete.
author Edgar Simo <bobbens@gmail.com>
date Fri, 19 Jun 2009 18:57:23 +0000
parents 80839fc6b8e1
children a34bab848c7e
line wrap: on
line source



CFLAGS  := `sdl-config --cflags`
LDFLAGS := `sdl-config --libs`

COMMON_SRC     := SDL_at.c
COMMON_INCLUDE := SDL_at.h

TESTS_ALL := rwops


.PHONY: all clean test


all: $(TESTS_ALL)

test:
	@./rwops

rwops: rwops.c $(COMMON_INCLUDE)
	$(CC) $(CFLAGS) $(LDFLAGS) -o rwops rwops.c $(COMMON_SRC)

clean:
	$(RM) $(TESTS_ALL)