CFLAGS = -g -Wall -DOS_LINUX CC=g++ PSILIB = -lpsi -lpsitool #INCLUDE = $(PSIINC) #LIBS = -lm #LIBS = $(PSITOOLLIB) $(PSILIB) -lm LIBS = $(PSILIB) -lm PROGRAMS = test_scsn_class peek poke pokem pretrigger ltc_rw all: $(PROGRAMS) test_scsn_class: test_scsn_class.o scsn_class.o Makefile @echo "*********** creating $@ *************" g++ $(CFLAGS) -o $@ $@.o scsn_class.o $(INCLUDE) $(LIBS) # cp $@ ~/bin mcmt_adc: mcmt_adc.o scsn_class.o g++ $(CFLAGS) -o $@ $@.o scsn_class.o $(INCLUDE) $(LIBS) mcmt_adc.o: mcmt_adc.cpp scsn_class.h g++ -c -Wall -pedantic -o $@ $(DEBUG) $(INCLUDE) $< mcmt_dds: mcmt_dds.o scsn_class.o g++ $(CFLAGS) -o $@ $@.o scsn_class.o $(INCLUDE) $(LIBS) mcmt_dds.o: mcmt_dds.cpp scsn_class.h g++ -c -Wall -pedantic -o $@ $(DEBUG) $(INCLUDE) $< rms_dump: rms_dump.o scsn_class.o Makefile @echo "*********** creating $@ *************" g++ $(CFLAGS) -o $@ $@.o scsn_class.o $(INCLUDE) $(LIBS) base_dump: base_dump.o scsn_class.o Makefile @echo "*********** creating $@ *************" g++ $(CFLAGS) -o $@ $@.o scsn_class.o $(INCLUDE) $(LIBS) peek: peek.o scsn_class.o trap_cnf.o Makefile @echo "*********** creating $@ *************" g++ $(CFLAGS) -o $@ $@.o trap_cnf.o scsn_class.o $(INCLUDE) $(LIBS) eb_write: eb_write.o scsn_class.o Makefile @echo "*********** creating $@ *************" g++ $(CFLAGS) -o $@ $@.o scsn_class.o $(INCLUDE) $(LIBS) tdump_cnf_scsn: tdump_cnf_scsn.o scsn_class.o trap_cnf.o Makefile @echo "*********** creating $@ *************" g++ $(CFLAGS) -o $@ $@.o trap_cnf.o scsn_class.o $(INCLUDE) $(LIBS) t_pup_rst_tst: t_pup_rst_tst.o scsn_class.o trap_cnf.o Makefile @echo "*********** creating $@ *************" g++ $(CFLAGS) -o $@ $@.o trap_cnf.o scsn_class.o $(INCLUDE) $(LIBS) reset_test: reset_test.o scsn_class.o Makefile @echo "*********** creating $@ *************" g++ $(CFLAGS) -o $@ $@.o scsn_class.o $(INCLUDE) $(LIBS) ltc_rw: ltc_rw.o scsn_class.o i2c_j2c_class.o trap_cnf.o ltc_eep.o Makefile @echo "*********** creating $@ *************" g++ $(CFLAGS) -o $@ $@.o trap_cnf.o scsn_class.o i2c_j2c_class.o ltc_eep.o $(INCLUDE) $(LIBS) ori_pre: ori_pre.o scsn_class.o i2c_j2c_class.o trap_cnf.o Makefile @echo "*********** creating $@ *************" g++ $(CFLAGS) -o $@ $@.o trap_cnf.o scsn_class.o i2c_j2c_class.o $(INCLUDE) $(LIBS) ltc_eep_report: ltc_eep_report.o scsn_class.o i2c_j2c_class.o ltc_eep.o trap_cnf.o Makefile @echo "*********** creating $@ *************" g++ $(CFLAGS) -o $@ $@.o trap_cnf.o scsn_class.o i2c_j2c_class.o ltc_eep.o $(INCLUDE) $(LIBS) ltc_eep_print: ltc_eep_print.o ltc_eep.o Makefile.scsn @echo "*********** creating $@ *************" g++ $(CFLAGS) -o $@ $@.o ltc_eep.o $(INCLUDE) $(LIBS) pretrigger: pretrigger.o scsn_class.o Makefile @echo "*********** creating $@ *************" g++ $(CFLAGS) -o $@ $@.o scsn_class.o $(INCLUDE) $(LIBS) poke: poke.o scsn_class.o trap_cnf.o Makefile @echo "*********** creating $@ *************" g++ $(CFLAGS) -o $@ $@.o trap_cnf.o scsn_class.o $(INCLUDE) $(LIBS) pokem: pokem.o scsn_class.o trap_cnf.o Makefile @echo "*********** creating $@ *************" g++ $(CFLAGS) -o $@ $@.o trap_cnf.o scsn_class.o $(INCLUDE) $(LIBS) clean: rm *.o $(PROGRAMS) *BackupPE *.ppu test_scsn_class.o : test_scsn_class.cpp scsn_class.h g++ -c -Wall -pedantic -o $@ $(DEBUG) $(INCLUDE) $< rms_dump.o : rms_dump.cpp scsn_class.h g++ -c -Wall -pedantic -o $@ $(DEBUG) $(INCLUDE) $< base_dump.o : base_dump.cpp scsn_class.h g++ -c -Wall -pedantic -o $@ $(DEBUG) $(INCLUDE) $< peek.o : peek.cpp scsn_class.h trap_cnf.h g++ -c -Wall -pedantic -o $@ $(DEBUG) $(INCLUDE) $< eb_write.o : eb_write.cpp scsn_class.h g++ -c -Wall -pedantic -o $@ $(DEBUG) $(INCLUDE) $< tdump_cnf_scsn.o : tdump_cnf_scsn.cpp scsn_class.h trap_cnf.h g++ -c -Wall -pedantic -o $@ $(DEBUG) $(INCLUDE) $< t_pup_rst_tst.o : t_pup_rst_tst.cpp scsn_class.h trap_cnf.h g++ -c -Wall -pedantic -o $@ $(DEBUG) $(INCLUDE) $< reset_test.o : reset_test.cpp scsn_class.h g++ -c -Wall -pedantic -o $@ $(DEBUG) $(INCLUDE) $< pretrigger.o : pretrigger.cpp scsn_class.h g++ -c -Wall -pedantic -o $@ $(DEBUG) $(INCLUDE) $< poke.o : poke.cpp scsn_class.h trap_cnf.h g++ -c -Wall -pedantic -o $@ $(DEBUG) $(INCLUDE) $< pokem.o : pokem.cpp scsn_class.h trap_cnf.h g++ -c -Wall -pedantic -o $@ $(DEBUG) $(INCLUDE) $< scsn_class.o: scsn_class.cpp scsn_class.h g++ -Wall -pedantic $< -c -o $@ # $(INCLUDE) $(LIBS) i2c_j2c_class.o: i2c_j2c_class.cpp i2c_j2c_class.h scsn_class.h g++ -Wall -pedantic $< -c -o $@ # $(INCLUDE) $(LIBS) ltc_eep.o: ltc_eep.cpp ltc_eep.h g++ -Wall -pedantic $< -c -o $@ # $(INCLUDE) $(LIBS) ltc_rw.o: ltc_rw.cpp scsn_class.h trap_cnf.h ltc_eep.h g++ -Wall -pedantic $< -c -o $@ # $(INCLUDE) $(LIBS) ori_pre.o: ori_pre.cpp scsn_class.h trap_cnf.h g++ -Wall -pedantic $< -c -o $@ # $(INCLUDE) $(LIBS) ltc_eep_report.o: ltc_eep_report.cpp scsn_class.h ltc_eep.h g++ -Wall -pedantic $< -c -o $@ # $(INCLUDE) $(LIBS) ltc_eep_print.o: ltc_eep_print.cpp ltc_eep.h g++ -Wall -pedantic $< -c -o $@ # $(INCLUDE) $(LIBS) trap_cnf.o: trap_cnf.cpp trap_cnf.h trap_cnf_tables.c g++ -Wall -pedantic $< -c -o $@