summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2012-05-04 15:53:52 +0000
committerJulian Ospald <hasufell@gentoo.org>2012-05-04 15:53:52 +0000
commit2e3403fe1dfbcf6b0f437506b7b1a19b766b6357 (patch)
tree6c132ed9ae8985ea272901cad8bdddd4815609ff /x11-plugins/pidgin-opensteamworks/files
parentManifest fix (diff)
downloadgentoo-2-2e3403fe1dfbcf6b0f437506b7b1a19b766b6357.tar.gz
gentoo-2-2e3403fe1dfbcf6b0f437506b7b1a19b766b6357.tar.bz2
gentoo-2-2e3403fe1dfbcf6b0f437506b7b1a19b766b6357.zip
initial import by Manuel Rueger (mrueg) wrt #414171
(Portage version: 2.2.0_alpha101/cvs/Linux x86_64)
Diffstat (limited to 'x11-plugins/pidgin-opensteamworks/files')
-rw-r--r--x11-plugins/pidgin-opensteamworks/files/pidgin-opensteamworks-1.0_p30-Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/x11-plugins/pidgin-opensteamworks/files/pidgin-opensteamworks-1.0_p30-Makefile b/x11-plugins/pidgin-opensteamworks/files/pidgin-opensteamworks-1.0_p30-Makefile
new file mode 100644
index 000000000000..1b1489df6532
--- /dev/null
+++ b/x11-plugins/pidgin-opensteamworks/files/pidgin-opensteamworks-1.0_p30-Makefile
@@ -0,0 +1,29 @@
+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