# # Makefile for bin2tec, a crude tool for extracting data out of the hdf file # and dumping in tecplot format # # get systems specific parameters include ../MakeIncl.Utilities ARGS=-m 2 -n 2 -i U -v 0 -l 0 -p 0 -t 0 C++APPFLAGS = -g -Wno-unused -Wall -I. -pedantic default : bin2tec num_conv .SUFFIXES: .SUFFIXES: .o .i.o .w.o .cpp .cpp.o: $(C++) -c $(C++APPFLAGS) $< # broken rule under gcc 3.x .cpp.i.o: $(RM) $@ $(INSURE) -c $(C++APPFLAGS) $< -o $@ # broken rule under gcc 3.x .cpp.w.o: $(RM) $@ $(CW) -c $(C++APPFLAGS) $< cp cw.lef.bin2tec cw.lef.bin2tec.$< test: bin2tec clate ilate wlate ./bin2tec $(ARGS) itest: ilate ./ilate $(ARGS) bin2tec: bin2tec.o PatchReadWrite.o $(C++) $(C++APPFLAGS) -o $@ $< PatchReadWrite.o clate: bin2tec cp bin2tec clate $(CHAPERON) ./clate $(ARGS) $(RM) clate ilate: bin2tec.cpp PatchReadWrite.i.o $(INSURE) $(C++APPFLAGS) -o $@ bin2tec.cpp PatchReadWrite.i.o wlate: nocw bin2tec.w.o PatchReadWrite.w.o nocw: -$(RM) cw.* num_conv : num_conv.o num_conv_reader.o PatchReadWrite.o $(C++) -o $@ num_conv.o num_conv_reader.o PatchReadWrite.o clean : nocw -/bin/rm -rf *.o bin2tec ilate pchdir tca.map ins.* num_conv install: if test ! -d $(FINAL_INSTALL_DIR)/bin ; then mkdir -p \ $(FINAL_INSTALL_DIR)/bin ; chmod 755 $(FINAL_INSTALL_DIR)/bin ; fi cp bin2tec $(FINAL_INSTALL_DIR)/bin uninstall : if test -d $(FINAL_INSTALL_DIR)/bin ; then \ /bin/rm -f $(FINAL_INSTALL_DIR)/bin/bin2tec ; \ fi