diff options
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | src/main.c | 12 |
2 files changed, 10 insertions, 5 deletions
@@ -1,4 +1,5 @@ CC=tcc +CFLAGS=-lncurses SRC=src OBJ=obj SOURCES=$(wildcard $(SRC)/*.c) @@ -12,7 +13,7 @@ run: $(BIN) build: $(BIN) $(BIN): $(OBJECTS) - $(CC) $(OBJECTS) -o $(BIN) + $(CC) $(CFLAGS) $(OBJECTS) -o $(BIN) $(OBJ)/%.o: $(SRC)/%.c $(CC) -c $< -o $@ @@ -1,7 +1,11 @@ -#include <stdio.h> - +#include <ncurses.h> int main() { - printf("Hello, world\n"); - return 0; + initscr(); + printw("Hello, world!"); + refresh(); + getch(); + endwin(); + + return 0; } |