freebsd-dev/tools/regression/fstest/Makefile
2008-11-23 19:56:09 +00:00

32 lines
532 B
Makefile

# $FreeBSD$
OSTYPE=$(shell uname)
ifeq "${OSTYPE}" "FreeBSD"
CFLAGS += -D__OS_FreeBSD__
CFLAGS += -DHAS_LCHMOD -DHAS_CHFLAGS -DHAS_LCHFLAGS
endif
ifeq "${OSTYPE}" "SunOS"
CFLAGS += -D__OS_Solaris__
CFLAGS += -DHAS_TRUNCATE64 -DHAS_STAT64
endif
ifeq "${OSTYPE}" "Darwin"
CFLAGS += -D__OS_Darwin__
CFLAGS += -DHAS_LCHMOD -DHAS_CHFLAGS -DHAS_LCHFLAGS
endif
ifeq "${OSTYPE}" "Linux"
CFLAGS += -D__OS_Linux__
CFLAGS += -D_GNU_SOURCE
endif
all: fstest
fstest: fstest.c
gcc -Wall ${CFLAGS} fstest.c -o fstest
clean:
rm -f fstest