# Common make definitions, customized for each platform
|
|
# Definitions required in all program directories to compile and link
|
# C programs using gcc.
|
|
CC=gcc
|
COMPILE.c=$(CC) $(CFLAGS) $(CPPFLAGS) -c
|
LINK.c=$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)
|
LDFLAGS=
|
LDDIR=-L$(ROOT)/lib
|
LDLIBS=$(LDDIR) -lapue $(EXTRALIBS)
|
CFLAGS=-ansi -I$(ROOT)/include -std=c++11 -Wall -DMACOS -D_DARWIN_C_SOURCE $(EXTRA)
|
RANLIB=ranlib
|
AR=ar
|
AWK=awk
|
LIBAPUE=$(ROOT)/lib/libapue.a
|
|
# Common temp files to delete from each directory.
|
TEMPFILES=core core.* *.o temp.* *.out
|