#****************************************************************************** # * # LayGO (tm) * # Copyright (c) 1994-2001 by Advanced Relay Corporation * # All rights reserved. * # * #****************************************************************************** # # Master makefile for LayGO C test programs for Linux using the # GNU C compiler and GNU make. # # Define BASE, INCS, and LIBS before including this file. # #****************************************************************************** # Standard Macros * #****************************************************************************** CC = gcc REMOVE = rm -f BASEDIR = /usr/laygo SRCDIR = .. INCDIR = $(BASEDIR)/inc LIBDIR = $(BASEDIR)/lib/linux ETCDIR = $(BASEDIR)/etc/clib CINCDIR = $(ETCDIR)/inc CLIBDIR = $(ETCDIR)/lib/linux #****************************************************************************** # Project Macros * #****************************************************************************** SRC = $(SRCDIR)/$(BASE).c EXE = $(BASE) CINCS = -I$(CINCDIR) -I$(INCDIR) $(INCS) CFLAGS = -O2 -D_REENTRANT -DNDEBUG -Dx_LINUX -Wall -pedantic $(CINCS) CLIBS = -llaygoclib ifndef LIBS LIBS = -llaygolnxa -llaygolnxm endif LIBS += -lpthread LFLAGS = -L$(CLIBDIR) $(CLIBS) -L$(LIBDIR) $(LIBS) #****************************************************************************** # Targets * #****************************************************************************** all: $(EXE) $(EXE): $(SRC) $(CC) $(CFLAGS) -o $(EXE) $(SRC) $(LFLAGS) clean: $(REMOVE) $(EXE) #****************************************************************************** # End of File * #******************************************************************************