summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile9
-rw-r--r--libirc/Makefile11
2 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..0806b5d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,9 @@
+LDFLAGS=-lirc -Llibirc
+CFLAGS=-pedantic -Wall
+
+all:
+ cd libirc && $(MAKE)
+ $(MAKE) segfault
+
+clean:
+ rm -f segfault
diff --git a/libirc/Makefile b/libirc/Makefile
new file mode 100644
index 0000000..2ed3299
--- /dev/null
+++ b/libirc/Makefile
@@ -0,0 +1,11 @@
+LDFLAGS=-lirc -Llibirc
+CFLAGS=-fpic -shared -pedantic -Wall
+TARGET=libirc.so
+
+all: $(TARGET)
+
+$(TARGET):
+ $(CC) $(CFLAGS) -o $(TARGET) libirc.c
+
+clean:
+ rm -f libirc.so