# 1999/10/29 Pierre Jaccard
#
# Define here the GFI compile time options.
# See file gfi/doc/txt/etc/gfinstal.txt for more information 
#
# Select the options you want and add them to the DFLAGS variable,
# then check that the $(DFLAGS) is listed in the CFLAG variable.

DEFAULT_PAPER_SIZE=a4 
DEFAULT_SCREEN_SIZE=75

DFLAGS= -DDEFAULT_SCREEN_SIZE=$(DEFAULT_SCREEN_SIZE) \
        -DDEFAULT_PAPER_SIZE=$(DEFAULT_PAPER_SIZE)   \
        -DUSE_GFI_OPTIONS                            \
	-DUSE_GFI_C78_CTD_FORMAT                     \
        -DUSE_GFI_PUTNAV                             \
        -DUSE_GFI_SCANPING

# Depending on the platform, you need select the correct definition

HOST= lnx
MAKE= make

# Compiler command and options
CC= gcc
CFLAGS= -g -Wall $(DFLAGS)
LDLIBS= -lm
#  GCC does not seem to need explicit specification of any
#  libraries such as the math lib, although it is recommended
#  as having higher quality versions of some routines.

# Other commands:
AR= ar rcv
RANLIB= ranlib
CP= cp -p
RM= rm -f
PERL= perl

# No permissions for DOS, so ignore chmod (linux has chmod)
CHMOD= chmod

# nothing special required for linking
CCLINK= $(CC)


# Our own "unix cd" to handle paths with forward slashes: (linux has cd)
CD= cd

# Permissions:
LIB_PERMISSION= 0644
BIN_PERMISSION= 0755

# Extensions:  (linux has no extensions)
EXE=
OBJ= .o
LIB= .a

# For make clean:
DIRT= *$(OBJ) *.bak *.tmp *.rsp


# Disable builtin suffixes and rules, so we can
# be sure what is going on:
.SUFFIXES:
.SUFFIXES:
	.o .c

# Now put in our default rule:
# GNU make pattern, instead of suffix rule
# The explicit -o option is required for cases where
# the source file is not in the current directory. It
# causes the object file to land in the source directory
# instead of the current directory.
#%$(OBJ) : %.c
#.c$(OBJ) :
%$(OBJ) : %.c
	$(CC) -c $(CFLAGS) $(INCLUDES) -o$*$(OBJ) $<


