diff options
author | Louis P. Santillan <lpsantil@gmail.com> | 2015-05-26 04:46:01 (GMT) |
---|---|---|
committer | Louis P. Santillan <lpsantil@gmail.com> | 2015-05-26 04:46:01 (GMT) |
commit | faa0bce4ed4378e6ab76df0507fb65d3406afa2b (patch) | |
tree | 161c4b55a60bcc2b6974f2ca80973fd831e9126c | |
parent | b2bbb2790d50f09b594f6588ebdade62966b5d5c (diff) | |
download | lz4-faa0bce4ed4378e6ab76df0507fb65d3406afa2b.zip lz4-faa0bce4ed4378e6ab76df0507fb65d3406afa2b.tar.gz lz4-faa0bce4ed4378e6ab76df0507fb65d3406afa2b.tar.bz2 |
Fixup lib/Makefile so that is builds a library for djgpp using Andrew Wu's build-djgpp cross compilers
-rw-r--r-- | lib/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/Makefile b/lib/Makefile index 4be1499..7c9062e 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -40,7 +40,7 @@ LIBVER=$(LIBVER_MAJOR).$(LIBVER_MINOR).$(LIBVER_PATCH) DESTDIR?= PREFIX ?= /usr/local CFLAGS ?= -O3 -CFLAGS += -I. -std=c99 -Wall -Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-prototypes -pedantic +CFLAGS += -I. -std=gnu99 -Wall -Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-prototypes -pedantic LIBDIR?= $(PREFIX)/lib INCLUDEDIR=$(PREFIX)/include @@ -60,14 +60,20 @@ else SHARED_EXT_VER = $(SHARED_EXT).$(LIBVER) endif +.PHONY: default all liblz4 liblz4 liblz4-static liblz4 clean install uninstall + default: liblz4 all: liblz4 -liblz4: lz4.c lz4hc.c lz4frame.c xxhash.c +liblz4: liblz4-static liblz4-dynamic + +liblz4-static: lz4.c lz4hc.c lz4frame.c xxhash.c @echo compiling static library @$(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -c $^ @$(AR) rcs liblz4.a lz4.o lz4hc.o lz4frame.o xxhash.o + +liblz4-dynamic: lz4.c lz4hc.c lz4frame.c xxhash.c @echo compiling dynamic library $(LIBVER) @$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -shared $^ -fPIC $(SONAME_FLAGS) -o $@.$(SHARED_EXT_VER) @echo creating versioned links |