Tested some island and unicode rendering.

This commit is contained in:
2014-03-01 22:43:28 -04:30
parent baa18d56a2
commit 667e1b1691
7 changed files with 258 additions and 51 deletions

View File

@@ -1,10 +1,10 @@
CC = gcc
SOURCES = src/main.c
OBJECTS = obj/main.o
SOURCES = src/main.c src/game_state.c src/in_game.c
OBJECTS = obj/main.o obj/game_state.o obj/in_game.o
TARGET = bin/cyjam
CFLAGS = -Wall -I./include
CFLAGS = -Wall -I./include -std=c99
LDFLAGS = -L./lib
LDLIBS = -lm -lisland -lfov -lncurses
LDLIBS = -lm -lisland -lfov -lncursesw
all: CFLAGS += -O3
all: $(TARGET)
@@ -15,7 +15,13 @@ debug: $(TARGET)
$(TARGET): $(OBJECTS)
$(CC) -o $(TARGET) $(OBJECTS) $(CLFAGS) $(LDFLAGS) $(LDLIBS)
obj/main.o: src/main.c
obj/main.o: src/main.c include/constants.h include/game_state.h
$(CC) -c -o $@ $< $(CFLAGS)
obj/game_state.o: src/game_state.c include/game_state.h include/in_game.h
$(CC) -c -o $@ $< $(CFLAGS)
obj/in_game.o: src/in_game.c include/in_game.h include/game_state.h
$(CC) -c -o $@ $< $(CFLAGS)
clean: