clii/makefile

18 lines
227 B
Makefile
Raw Normal View History

CC = gcc
CFLAGS = -Wall -g
LDFLAGS = -lncurses
OBJS = main.o wsock.o ctx.o
DEPS = main.c
all: clii
clean:
rm -f $(OBJS)
clii: $(OBJS)
$(CC) -o $@ $^ $(LDFLAGS)
%.o: src/%.c
$(CC) -o $@ $(CFLAGS) -c $<
.PHONY: all clean