+# where to install
+prefix := /usr/local
+libdir := $(prefix)/lib
+includedir := $(prefix)/include
+
+objects := osl.o util.o rbtree.o sha1.o
+fsck_objects := fsck.fsck.o osl.fsck.o util.fsck.o rbtree.fsck.o sha1.fsck.o fsck.cmdline.o
+headers := osl.h
+
+INSTALL := install
+CC := gcc
+MKDIR := mkdir -p
+RM := rm -f
+LN := ln
+
+# libosl's versioning consists of three numbers. Let's call them x, y and z.
+# The way x, y and z are interpreted depends on the OS.
+x := 0
+y := 1
+z := 0
+VERSION := $(x).$(y).$(z)
+
+# common flags
+CFLAGS += -Wno-sign-compare -g -Wunused -Wundef -W
+CFLAGS += -Wredundant-decls
+CFLAGS += -Os
+CFLAGS += -Wall
+CFLAGS += -Wuninitialized
+CFLAGS += -Wchar-subscripts
+CFLAGS += -Wformat-security
+CFLAGS += -Werror-implicit-function-declaration
+CFLAGS += -Wmissing-format-attribute
+CFLAGS += -Wunused-macros
+CFLAGS += -Wbad-function-cast
+
+# cflags used only for building library objects
+LIBCFLAGS += -fPIC
+LIBCFLAGS += -fvisibility=hidden
+