tg/Makefile
2013-10-03 20:09:06 +04:00

18 lines
225 B
Makefile

CC=cc
CFLAGS=-c -Wall -Wextra -fPIC
LDFLAGS=-lreadline
LD=cc
SRC=main.c loop.c interface.c
OBJ=$(SRC:.c=.o)
EXE=telegram
all: $(SRC) $(EXE)
$(EXE): $(OBJ)
$(LD) $(OBJ) $(LDFLAGS) -o $@
.c.o:
$(CC) $(CFLAGS) $< -o $@