2222
This commit is contained in:
parent
8de7f8fd07
commit
fec075db16
@ -1,13 +1,13 @@
|
|||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -Wall -std=c99 -g -I/usr/include -I/usr/include/ncursesw
|
CFLAGS = -Wall -std=c99 -g -I/usr/include -I/usr/include/ncursesw
|
||||||
LDFLAGS = -lncursesw
|
LDFLAGS = -lncurses
|
||||||
|
|
||||||
OBJS = main.o game.o world.o
|
OBJS = main.o game.o world.o
|
||||||
|
|
||||||
all: game
|
all: game
|
||||||
|
|
||||||
game: $(OBJS)
|
game: $(OBJS)
|
||||||
$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) -o game
|
$(CC) $(OBJS) $(LDFLAGS) -o game
|
||||||
|
|
||||||
main.o: main.c game.h world.h
|
main.o: main.c game.h world.h
|
||||||
$(CC) $(CFLAGS) -c main.c
|
$(CC) $(CFLAGS) -c main.c
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef _WORLD_H_
|
#ifndef _WORLD_H_
|
||||||
#define _WORLD_H_
|
#define _WORLD_H_
|
||||||
|
|
||||||
#include "/usr/include/ncurses.h"
|
#include <ncurses.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* World represented as a rectangular matrix of colorful characters.
|
* World represented as a rectangular matrix of colorful characters.
|
||||||
|
Loading…
Reference in New Issue
Block a user