blob: 06cf7537b54003f4d9e938e1483f8d9fb24f260b [file] [log] [blame]
SHELL = /bin/sh
RM = rm -f
LOCAL_CFLAGS := -Wall \
-g -Os \
-flto \
-fpermissive \
LOCAL_PATH = .
LOCAL_C_INCLUDES = \
-I. \
-I$(ROOT)$(includedir)/logger \
-I$(ROOT)$(includedir)/liblog \
-I$(ROOT)$(includedir)/glib-2.0 \
-I$(ROOT)$(libdir)/glib-2.0/include \
-I$(ROOT)$(includedir)/dbus-1.0 \
-I$(ROOT)$(libdir)/dbus-1.0/include \
LOCAL_LIBS := \
-L. \
-ldl \
-lpthread \
-llynq-log \
-lssl \
-lglib-2.0 \
-lgobject-2.0 \
-lgio-2.0 \
-ldbus-1 \
SOURCES = $(wildcard *.c)
EXECUTABLE = lynq-udpser
OBJECTS=$(SOURCES:.c=.o)
all: $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(CXX) $(OBJECTS) $(LOCAL_LIBS) $(LOCAL_CFLAGS) $(LOCAL_C_INCLUDES) -o $@
%.o : %.c
$(CC) $(LOCAL_C_INCLUDES) $(LOCAL_CFLAGS) $(LOCAL_LIBS) -o $@ -c $<
.PHONY: clean
clean:
$(RM) $(OBJECTS) $(EXECUTABLE)