# /*******************************************************************************/
# /*                                                                             */
# /*  Copyright 2005 Pascal Gloor <pascal.gloor@spale.com>                       */
# /*                                                                             */
# /*  Licensed under the Apache License, Version 2.0 (the "License");            */
# /*  you may not use this file except in compliance with the License.           */
# /*  You may obtain a copy of the License at                                    */
# /*                                                                             */
# /*     http://www.apache.org/licenses/LICENSE-2.0                              */
# /*                                                                             */
# /*  Unless required by applicable law or agreed to in writing, software        */
# /*  distributed under the License is distributed on an "AS IS" BASIS,          */
# /*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   */
# /*  See the License for the specific language governing permissions and        */
# /*  limitations under the License.                                             */
# /*                                                                             */
# /*******************************************************************************/

PREFIX=/usr/local
CC=cc
CFLAGS=$(WARNING) $(DEBUG) -ansi -pedantic $(INCLUDE) -DOS_$(OS)
INCLUDE=-I../inc
DEBUG_YES=-g
DEBUG_NO=-O2
LDFLAGS=-shared
INSTALL=install -c
RM=rm -f
AR=ar -qc
LN=ln -s -f
GZIP=gzip -c9

PRINTFC=@printf "compiling    %15s ... "
PRINTFL=@printf "linking      %15s ... "
PRINTFP=@printf "prefix       %15s\n"


WARNING=-Werror -Wall -W -Wshadow \
-Wpointer-arith -Wmissing-prototypes \
-Wmissing-declarations -Wredundant-decls

# GNU make
OS = $(shell uname -s | tr [a-z] [A-Z])

# BSD make
OS != uname -s | tr [a-z] [A-Z]

include config.h
