X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=Makefile;h=6f5b391370e784330264a4a1febad3f77fa40dff;hb=HEAD;hp=66745146bfabff1e9bbc947cdbcfeaec1b9959a1;hpb=dea52d3cb07ee32517dc38ec909725d83a63b7bb;p=osl.git diff --git a/Makefile b/Makefile index 6674514..6f5b391 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,8 @@ # increases performance and avoids hard-to-debug behaviour. .SUFFIXES: MAKEFLAGS += -Rr -ifeq ("$(origin CC)", "default") +CC := $(CC) +ifeq ($(strip $(CC)),) CC := cc endif @@ -14,8 +15,8 @@ includedir := $(PREFIX)/include bindir := $(PREFIX)/bin mandir := $(PREFIX)/man/man1 -objects := osl.o util.o rbtree.o sha1.o -fsck_objects := fsck.o osl.o util.o rbtree.o sha1.o oslfsck.lsg.o +objects := osl.o util.o rbtree.o sha1.o sha3.o sha256.o +fsck_objects := fsck.o osl.o util.o rbtree.o sha1.o sha3.o sha256.o oslfsck.lsg.o deps := $(sort $(objects:.o=.d) $(fsck_objects:.o=.d)) headers := osl.h executables := oslfsck @@ -31,8 +32,8 @@ OBJCOPY := objcopy # libosl's versioning consists of three numbers. Let's call them x, y and z. x := 0 -y := 1 -z := 3 +y := 2 +z := 0 VERSION := $(x).$(y).$(z) OSL_CPPFLAGS += -DOSL_VERSION='"$(VERSION)"'