summaryrefslogtreecommitdiff
path: root/makefile.gnu
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2014-03-02 13:53:33 -0500
committerJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2014-03-02 13:53:33 -0500
commit9155a365e1e0a7e9fec47447f86af09117b30edb (patch)
tree6c54cfee6f4784aa777cef186dbca9aa1f856efd /makefile.gnu
parentffe739eeb12d1bf9dadb2144e95fef79820c6844 (diff)
downloadprism-9155a365e1e0a7e9fec47447f86af09117b30edb.tar.gz
prism-9155a365e1e0a7e9fec47447f86af09117b30edb.zip
Added support for building with GNU C (Linux, etc.). Fixed minor bugs in diff routine.
Diffstat (limited to 'makefile.gnu')
-rw-r--r--makefile.gnu18
1 files changed, 18 insertions, 0 deletions
diff --git a/makefile.gnu b/makefile.gnu
new file mode 100644
index 0000000..a0d0c16
--- /dev/null
+++ b/makefile.gnu
@@ -0,0 +1,18 @@
+CC = gcc
+
+CFLAGS=-g
+
+OBJS = compress.o db.o fcomp.o md5.o prism.o rfile.o util.o
+
+TGT = prism
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+$(TGT): $(OBJS)
+ $(CC) -o $(TGT) $(OBJS) -lz
+
+all: $(TGT)
+
+clean:
+ rm -f $(TGT) $(OBJS)