From 34b01fa4d3614698ac2b1af74a7f56b986fd97c4 Mon Sep 17 00:00:00 2001 From: Eudyptula Date: Tue, 21 Jul 2009 16:02:48 -0400 Subject: Added bkisofs ISO manipulation library and wrote CLI wrapper for it --- lib/bkisofs/Makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 lib/bkisofs/Makefile (limited to 'lib/bkisofs/Makefile') 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 + -- cgit v1.2.3-65-gdbad