=== Overview ===
[xuni.git] / src / test / Makefile
blobce2bd97eceed0d22b71cf971d42cb275978e9b0b
1 # Makefile for xuni's src/test subdirectory, Linux version
3 INCPATH = -I . -I .. -I /usr/include/SDL
5 CC = gcc
6 CFLAGS = -W -Wall -Wno-unused-parameter -ansi -pedantic -Wno-endif-labels -g \
7 $(INCPATH) -fPIC
9 SOURCES = game.c main.c menu.c options.c
10 OBJECTS = $(SOURCES:.c=.o)
12 # Default target: all
13 .PHONY: all
14 all: $(OBJECTS)
16 # Source file dependency list
17 -include depend
19 # Other targets
20 .PHONY: clean wc
21 depend:
22 gcc -MM $(CFLAGS) $(SOURCES) | ../gendepend.pl > depend
23 clean:
24 -rm $(OBJECTS) depend