25 lines
455 B
Makefile
25 lines
455 B
Makefile
CFLAGS += -Wall -Wextra -pedantic
|
|
# CFLAGS += -O0 -g
|
|
CFLAGS += -O3
|
|
|
|
.phony: all clean
|
|
|
|
all: tel teld
|
|
|
|
clean:
|
|
rm -f tel teld tel.o teld.o libtel.o
|
|
|
|
libtel.o: libtel.c
|
|
$(CC) $(CFLAGS) -c libtel.c
|
|
|
|
tel.o: tel.c libtel.h
|
|
$(CC) $(CFLAGS) -c tel.c -ledit -lncurses
|
|
|
|
tel: tel.o libtel.o
|
|
$(CC) $(CFLAGS) tel.o libtel.o -o tel
|
|
|
|
teld.o: teld.c libtel.h
|
|
$(CC) $(CFLAGS) -c teld.c -ledit -lncurses
|
|
|
|
teld: teld.o libtel.o
|
|
$(CC) $(CFLAGS) teld.o libtel.o -o teld
|