summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2014-03-15 03:18:49 -0500
committerepoch <epoch@hacking.allowed.org>2014-03-15 03:18:49 -0500
commitf5c8e31e744a120a580e28f8981f79bfbf255a1b (patch)
tree7a496902e3a7c171c5c0ba2fbc6ae08de613eadb
parent8ab43a38e0e99020b12ceedaafec0e7d8d663f79 (diff)
downloadsegfault-f5c8e31e744a120a580e28f8981f79bfbf255a1b.tar.gz
segfault-f5c8e31e744a120a580e28f8981f79bfbf255a1b.zip
experimental Makefiles.
-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