summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEudyptula <eitan@mosenkis.net>2009-07-21 16:02:48 -0400
committerEudyptula <eitan@mosenkis.net>2009-07-21 16:02:48 -0400
commit34b01fa4d3614698ac2b1af74a7f56b986fd97c4 (patch)
treec85a7c34256db034a676c683875a405a361bca9b /lib/bkisofs/Makefile
parentFixes/hacks so backend still works with non-execution logging (diff)
downloadingenue-34b01fa4d3614698ac2b1af74a7f56b986fd97c4.tar.gz
ingenue-34b01fa4d3614698ac2b1af74a7f56b986fd97c4.tar.bz2
ingenue-34b01fa4d3614698ac2b1af74a7f56b986fd97c4.zip
Added bkisofs ISO manipulation library and wrote CLI wrapper for it
Diffstat (limited to 'lib/bkisofs/Makefile')
-rw-r--r--lib/bkisofs/Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/bkisofs/Makefile b/lib/bkisofs/Makefile
new file mode 100644
index 0000000..f565fcb
--- /dev/null
+++ b/lib/bkisofs/Makefile
@@ -0,0 +1,29 @@
+# CC, AR, RM defined in parent makefile
+
+OBJECTS = bkRead7x.o bkAdd.o bkDelete.o bkExtract.o bkRead.o bkPath.o bkMangle.o bkWrite.o bkWrite7x.o bkTime.o bkSort.o bkError.o bkGet.o bkSet.o bkCache.o bkLink.o bkMisc.o bkIoWrappers.o
+
+# -DDEBUG and -g only used during development
+CFLAGS += -Wall -pedantic -std=gnu99 -Wundef -Wcast-align -W -Wpointer-arith -Wwrite-strings -Wno-unused-parameter
+
+# the _FILE_OFFSET_BITS=64 is to enable stat() for large files
+CPPFLAGS = -D_FILE_OFFSET_BITS=64
+
+ifdef WINDOWS_BUILD
+ CPPFLAGS += -DWINDOWS_BUILD
+endif
+
+bk.a: $(OBJECTS)
+ @echo 'Creating bk.a'
+ @$(AR) -cr bk.a $(OBJECTS)
+
+# static pattern rule
+$(OBJECTS): %.o: %.c %.h Makefile bk.h bkInternal.h
+ @echo 'Compiling' $<
+ @$(CC) $< $(CFLAGS) $(CPPFLAGS) -c -o $@
+
+example: example.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) example.c bk.a -o example
+
+clean:
+ $(RM) *.o bk.a
+