Tested some island and unicode rendering.
This commit is contained in:
16
Makefile
16
Makefile
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user