# Makefile
# makefile for L1Processor mopip module
# Charles Cavanaugh
# December 1998

GOAL = libMOPIP.a
INCS = -I$(PGSINC) -I. -I./../diagnostics -I./../file
SRCS = MOPIPParameter.C CDEReadoutParameter.C DiodeColdFilterParameter.C DiodeDetectorNestParameter.C \
       DiodeDetectorParameter.C HeaterVoltageParameter.C MotorCurrentParameter.C PMCPPOParameter.C \
       PMCPhaseErrorParameter.C PRTBlackbodyParameter.C PRTSieveParameter.C ThermistorPCDMParameter.C \
       ThermistorPressureTempParameter.C ThermistorPressureParameter.C ThermistorStandardParameter.C MOPIPValues.C \
       MOPIPFile.C
OBJS = ${SRCS:.C=.o}
CFLAGS = -DLINUX64 -mtune=nocona -m64 -ansi -c
CC = g++

.C.o:
	$(CC) $(CFLAGS) $< $(INCS)

debug:
	make tidy lib "CFLAGS=$(CFLAGS) -g" clean

warn:
	make tidy lib "CFLAGS=$(CFLAGS) -fullwarn -g" clean

all:    tidy lib clean

lib:    $(OBJS)
	ar ru $(GOAL) $(OBJS)

clean:
	rm -f $(OBJS)

tidy:
	rm -f $(OBJS) $(GOAL)

lint:
	lint -mux $(SRCS) $(INCS)
