2013-10-03 16:38:25 +04:00
|
|
|
CC=cc
|
2013-10-12 00:52:20 +04:00
|
|
|
CFLAGS=-c -Wall -Wextra -Werror -fPIC -ggdb -O2 -fno-omit-frame-pointer -fno-strict-aliasing -rdynamic
|
|
|
|
LDFLAGS=-lreadline -lssl -lcrypto -lrt -lz -ggdb -rdynamic
|
2013-10-03 16:38:25 +04:00
|
|
|
LD=cc
|
|
|
|
|
2013-10-12 00:52:20 +04:00
|
|
|
SRC=main.c loop.c interface.c net.c mtproto-common.c mtproto-client.c queries.c structures.c
|
2013-10-03 16:38:25 +04:00
|
|
|
OBJ=$(SRC:.c=.o)
|
|
|
|
EXE=telegram
|
|
|
|
|
|
|
|
all: $(SRC) $(EXE)
|
|
|
|
|
|
|
|
$(EXE): $(OBJ)
|
2013-10-03 20:09:06 +04:00
|
|
|
$(LD) $(OBJ) $(LDFLAGS) -o $@
|
2013-10-03 16:38:25 +04:00
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) $(CFLAGS) $< -o $@
|
|
|
|
|