view Makefile @ 422:c89f7aa4ced8

Cleanup Makefile.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 09 Mar 2016 16:14:47 +0200
parents d8702bbab84f
children 0a2f32b8a26e
line wrap: on
line source

#
# Configuration settings for Linux and generic UNIX
# See other Makefile.* files for more options.
#

# Miscellaneous
PREFIX = /usr/local
BINPATH = ./
OBJPATH = obj/unix/
EXEEXT =

# C-compiler, flags and linker flags
CC ?= gcc
AR ?= ar
RANLIB ?= ranlib
INSTALL ?= install

CFLAGS += -DHAVE_CONFIG_H
LDFLAGS +=

CFLAGS += -DHAVE_STRING_H
CFLAGS += -DHAVE_STDINT_H
#CFLAGS += -DHAVE_SYS_TYPES_H
CFLAGS += -DHAVE_INTTYPES_H


###
### Unix targets
###
ENDIANCHK_BIN = $(BINPATH)endianchk$(EXEEXT)
NOINST_TARGETS += $(ENDIANCHK_BIN) config.h
THLIBS_DEP += config.h

include Makefile.gen