You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xmppipe/Makefile

26 lines
543 B
Makefile

RM=rm
UNAME_SYS := $(shell uname -s)
ifeq ($(UNAME_SYS), Linux)
LDFLAGS += -luuid -lresolv
else ifeq ($(UNAME_SYS), SunOS)
LDFLAGS += -luuid -lresolv
else ifeq ($(UNAME_SYS), Darwin)
LDFLAGS += -lresolv
endif
all:
$(CC) -g -Wall $(CFLAGS) -o xmppipe src/*.c $(LDFLAGS) -lstrophe
static:
$(CC) -g -Wall -o xmppipe src/*.c -Wl,--no-as-needed -ldl -lz \
/usr/local/lib/libstrophe.a \
/usr/lib/*/libresolv.a \
/usr/lib/*/libssl.a \
/usr/lib/*/libcrypto.a \
/usr/lib/*/libexpat.a \
/usr/lib/*/libuuid.a
clean:
-@$(RM) xmppipe