18 lines
225 B
Makefile
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 $@
|
|
|