Move boxes around to fit with minimap.
[runemen.git] / Makefile
blobff37fe30a61fce9c5ee22d9e96ea77d90fe4a1cd
1 CC=gcc
3 CFLAGS=-g -Wall `sdl2-config --cflags`
4 LFLAGS=`sdl2-config --libs` -lpng
6 RUNE_PATH=src
8 SOURCES= \
9 $(RUNE_PATH)/libs/savepng/savepng.c \
10 $(RUNE_PATH)/libs/binaryheap/binhl.c \
11 $(RUNE_PATH)/libs/libcsslike/hash/hash.c \
12 $(RUNE_PATH)/libs/libcsslike/hash/stash.c \
13 $(RUNE_PATH)/libs/libcsslike/cssdom.c \
14 $(RUNE_PATH)/libs/lazyass/lazyass.c \
15 $(RUNE_PATH)/sdl2-x.c $(RUNE_PATH)/font2.c $(RUNE_PATH)/SDL2_particles.c \
16 $(RUNE_PATH)/mainmenu.c \
17 $(RUNE_PATH)/ai.c \
18 $(RUNE_PATH)/utils.c \
19 $(RUNE_PATH)/draw.c \
20 $(RUNE_PATH)/mana.c \
21 $(RUNE_PATH)/game.c \
22 $(RUNE_PATH)/ui.c \
23 $(RUNE_PATH)/runeconf.c \
24 $(RUNE_PATH)/rune2.c \
25 $(RUNE_PATH)/main.c
27 EXECUTABLE=rune
29 OBJECTS=$(SOURCES:.c=.o)
31 all: $(SOURCES) $(EXECUTABLE)
33 vendor:
34 git submodule update --init --recursive
35 git submodule foreach git checkout master
36 git submodule foreach git pull
38 src/font2.c:
39 make -C src/libs/SDL_inprint font2.c
40 cp src/libs/SDL_inprint/font2.c src/.
42 $(EXECUTABLE): $(OBJECTS)
43 $(CC) $(CFLAGS) $(LFLAGS) $(OBJECTS) -o $@
45 .c.o: $<
46 $(CC) -c $(CFLAGS) $< -o $@
48 clean:
49 rm -rf src/*.o *.a $(EXECUTABLE)
51 vendor-clean:
52 rm -rf \
53 src/libs/lazyass/*.o \
54 src/libs/binaryheap/*.o \
55 src/libs/libcsslike/*.o \
56 src/libs/SDL_inprint/*.o \
57 src/libs/SDL_inprint/font2.c \
58 src/font2.c \
59 src/libs/savepng/*.o