You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-plugins/pidgin-opensteamworks/files/pidgin-opensteamworks-1.0_p...

30 lines
627 B

CC ?= gcc
PLUGINDIR ?= $(shell pkg-config --variable=plugindir purple)
CFLAGS += -Wall -fPIC
LDFLAGS += -shared
CPPFLAGS += $(shell pkg-config --cflags glib-2.0 json-glib-1.0 purple)
LIBS += $(shell pkg-config --libs glib-2.0 json-glib-1.0 purple)
TARGET = libsteam.so
OBJS = libsteam.o steam_connection.o
%.o: %.c %.h
$(CC) $(CFLAGS) $(CPPFLAGS) -c $*.c
$(TARGET): $(OBJS)
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
install: $(TARGET)
@install -Dm755 $(TARGET) "$(DESTDIR)$(PLUGINDIR)/$(TARGET)"
uninstall:
@rm -f "$(DESTDIR)$(PLUGINDIR)/$(TARGET)"
clean:
@rm -f $(OBJS) $(TARGET)
.PHONY: uninstall clean