2013-10-03 08:38:25 -04:00
|
|
|
CC=cc
|
2013-10-11 16: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 08:38:25 -04:00
|
|
|
LD=cc
|
|
|
|
|
2013-10-11 16: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 08:38:25 -04:00
|
|
|
OBJ=$(SRC:.c=.o)
|
|
|
|
EXE=telegram
|
2013-10-13 06:18:08 -04:00
|
|
|
HDRS=include.h interface.h loop.h mtproto-client.h mtproto-common.h net.h queries.h structures.h telegram.h tree.h
|
2013-10-03 08:38:25 -04:00
|
|
|
|
|
|
|
all: $(SRC) $(EXE)
|
|
|
|
|
|
|
|
$(EXE): $(OBJ)
|
2013-10-03 12:09:06 -04:00
|
|
|
$(LD) $(OBJ) $(LDFLAGS) -o $@
|
2013-10-03 08:38:25 -04:00
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) $(CFLAGS) $< -o $@
|
|
|
|
|
2013-10-13 08:30:53 -04:00
|
|
|
clean:
|
|
|
|
rm *.o telegram || true
|