diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4690d22 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.o +.moc +rhel7 diff --git a/Makefile_ b/Makefile_ new file mode 100644 index 0000000..89f4898 --- /dev/null +++ b/Makefile_ @@ -0,0 +1,29 @@ +# M. Zolliker 04.2017 +# this file shows the correct usage of make for SeaClient + +%: usage + @echo + +%.o: usage + @echo + +default: usage + +usage: + @ echo "" + @ echo "Usage:" + @ echo "" + @ echo ' with Makefile_ one of' + @ echo "" + @ ls -1 Makefile_?* | pr -t -o 4 + @ echo "" + @ echo " use make without args:" + @ echo "" + @ echo " setenv linuxsys " + @ echo " make [target]" + @ echo "" + @ echo " for a new , you may edit SeaClient.pro" + @ echo " and then create the makefile:" + @ echo "" + @ echo " qmake -o Makefile_ SeaClient.pro" + diff --git a/Makefile_rhel8 b/Makefile_rhel8 new file mode 100644 index 0000000..655b8ec --- /dev/null +++ b/Makefile_rhel8 @@ -0,0 +1,386 @@ +############################################################################# +# Makefile for building: rhel8/SeaClient +# Generated by qmake (1.07a) (Qt 3.3.4) on: Thu Apr 6 11:05:39 2017 +# Project: SeaClient.pro +# Template: app +# Command: $(QMAKE) -o Makefile_rhel8 SeaClient.pro +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +LEX = flex +YACC = yacc +CFLAGS = -pipe -Wall -W -g -D_REENTRANT -DQT_THREAD_SUPPORT -DQT_SHARED +CXXFLAGS = -pipe -Wall -W -Wno-non-virtual-dtor -Wno-unused-parameter -Wno-write-strings -Wno-unused-but-set-variable -Wno-type-limits -g -D_REENTRANT -DQT_THREAD_SUPPORT -DQT_SHARED +LEXFLAGS = +YACCFLAGS= -d +INCPATH = -I/afs/psi.ch/user/z/zolliker/public/qt64/mkspecs/default -I. -I../qtx64/qt-x11-free-3.3.4/include -I../qtx64/qwt-4.2.0/include -I$(QTDIR)/include -I.ui/ -I.moc/ +LINK = g++ +LFLAGS = -Wl,-rpath,$(QTDIR)/lib +LIBS = $(SUBLIBS) -L$(QTDIR)/lib -L/usr/X11R6/lib -L/afs/psi.ch/user/z/zolliker/public/qwt64/lib -lqwt -lqt-mt -lXext -lX11 -lm -lpthread +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic +QMAKE = qmake +TAR = tar -cf +GZIP = gzip -9f +COPY = cp -f +COPY_FILE= $(COPY) +COPY_DIR = $(COPY) -r +INSTALL_FILE= $(COPY_FILE) +INSTALL_DIR = $(COPY_DIR) +DEL_FILE = rm -f +SYMLINK = ln -sf +DEL_DIR = rmdir +MOVE = mv -f +CHK_DIR_EXISTS= test -d +MKDIR = mkdir -p + +####### Output directory + +OBJECTS_DIR = rhel8/ + +####### Files + +HEADERS = main.h \ + seaset.h \ + seaplot.h \ + sicsconn.h \ + tab.h \ + settings.h \ + command.h \ + graph.h \ + utils.h \ + export.h \ + report.h \ + device.h +SOURCES = main.cpp \ + seaset.cpp \ + seaplot.cpp \ + instr_hosts.cpp \ + sicsconn.cpp \ + tab.cpp \ + settings.cpp \ + command.cpp \ + graph.cpp \ + utils.cpp \ + export.cpp \ + report.cpp \ + device.cpp +OBJECTS = rhel8/main.o \ + rhel8/seaset.o \ + rhel8/seaplot.o \ + rhel8/instr_hosts.o \ + rhel8/sicsconn.o \ + rhel8/tab.o \ + rhel8/settings.o \ + rhel8/command.o \ + rhel8/graph.o \ + rhel8/utils.o \ + rhel8/export.o \ + rhel8/report.o \ + rhel8/device.o +FORMS = +UICDECLS = +UICIMPLS = +SRCMOC = .moc/moc_main.cpp \ + .moc/moc_seaset.cpp \ + .moc/moc_seaplot.cpp \ + .moc/moc_sicsconn.cpp \ + .moc/moc_tab.cpp \ + .moc/moc_settings.cpp \ + .moc/moc_command.cpp \ + .moc/moc_graph.cpp \ + .moc/moc_utils.cpp \ + .moc/moc_export.cpp \ + .moc/moc_report.cpp \ + .moc/moc_device.cpp +OBJMOC = rhel8/moc_main.o \ + rhel8/moc_seaset.o \ + rhel8/moc_seaplot.o \ + rhel8/moc_sicsconn.o \ + rhel8/moc_tab.o \ + rhel8/moc_settings.o \ + rhel8/moc_command.o \ + rhel8/moc_graph.o \ + rhel8/moc_utils.o \ + rhel8/moc_export.o \ + rhel8/moc_report.o \ + rhel8/moc_device.o +DIST = SeaClient.pro +QMAKE_TARGET = SeaClient +DESTDIR = rhel8/ +TARGET = rhel8/SeaClient + +first: all +####### Implicit rules + +.SUFFIXES: .c .o .cpp .cc .cxx .C + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + +all: Makefile_rhel8 $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + test -d rhel8/ || mkdir -p rhel8/ + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(OBJCOMP) $(LIBS) + +mocables: $(SRCMOC) +uicables: $(UICDECLS) $(UICIMPLS) + +$(MOC): + ( cd $(QTDIR)/src/moc && $(MAKE) ) + +Makefile_rhel8: SeaClient.pro /afs/psi.ch/user/z/zolliker/public/qt64/mkspecs/default/qmake.conf ../qt64/lib/libqt-mt.prl + $(QMAKE) -o Makefile_rhel8 SeaClient.pro +qmake: + @$(QMAKE) -o Makefile_rhel8 SeaClient.pro + +dist: + @mkdir -p rhel8/SeaClient && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) rhel8/SeaClient/ && ( cd `dirname rhel8/SeaClient` && $(TAR) SeaClient.tar SeaClient && $(GZIP) SeaClient.tar ) && $(MOVE) `dirname rhel8/SeaClient`/SeaClient.tar.gz . && $(DEL_FILE) -r rhel8/SeaClient + +mocclean: + -$(DEL_FILE) $(OBJMOC) + -$(DEL_FILE) $(SRCMOC) + +uiclean: + +yaccclean: +lexclean: +clean: mocclean + -$(DEL_FILE) $(OBJECTS) + -$(DEL_FILE) *~ core *.core + + +####### Sub-libraries + +distclean: clean + -$(DEL_FILE) rhel8/$(TARGET) $(TARGET) + + +FORCE: + +####### Compile + +rhel8/main.o: main.cpp main.h \ + instr_hosts.h \ + tab.h \ + graph.h \ + settings.h \ + device.h \ + export.h \ + report.h \ + seaset.h \ + sicsconn.h \ + seaplot.h \ + command.h \ + utils.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o rhel8/main.o main.cpp + +rhel8/seaset.o: seaset.cpp seaset.h \ + utils.h \ + sicsconn.h \ + seaplot.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o rhel8/seaset.o seaset.cpp + +rhel8/seaplot.o: seaplot.cpp seaplot.h \ + utils.h \ + seaset.h \ + sicsconn.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o rhel8/seaplot.o seaplot.cpp + +rhel8/instr_hosts.o: instr_hosts.cpp instr_hosts.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o rhel8/instr_hosts.o instr_hosts.cpp + +rhel8/sicsconn.o: sicsconn.cpp sicsconn.h \ + instr_hosts.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o rhel8/sicsconn.o sicsconn.cpp + +rhel8/tab.o: tab.cpp tab.h \ + graph.h \ + settings.h \ + device.h \ + export.h \ + report.h \ + seaset.h \ + sicsconn.h \ + seaplot.h \ + command.h \ + utils.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o rhel8/tab.o tab.cpp + +rhel8/settings.o: settings.cpp settings.h \ + utils.h \ + seaset.h \ + device.h \ + sicsconn.h \ + seaplot.h \ + command.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o rhel8/settings.o settings.cpp + +rhel8/command.o: command.cpp command.h \ + utils.h \ + sicsconn.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o rhel8/command.o command.cpp + +rhel8/graph.o: graph.cpp graph.h \ + seaset.h \ + utils.h \ + sicsconn.h \ + seaplot.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o rhel8/graph.o graph.cpp + +rhel8/utils.o: utils.cpp utils.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o rhel8/utils.o utils.cpp + +rhel8/export.o: export.cpp export.h \ + seaset.h \ + sicsconn.h \ + seaplot.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o rhel8/export.o export.cpp + +rhel8/report.o: report.cpp report.h \ + sicsconn.h \ + utils.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o rhel8/report.o report.cpp + +rhel8/device.o: device.cpp device.h \ + utils.h \ + seaset.h \ + command.h \ + sicsconn.h \ + seaplot.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o rhel8/device.o device.cpp + +rhel8/moc_main.o: .moc/moc_main.cpp main.h tab.h \ + graph.h \ + settings.h \ + device.h \ + export.h \ + report.h \ + seaset.h \ + sicsconn.h \ + seaplot.h \ + command.h \ + utils.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o rhel8/moc_main.o .moc/moc_main.cpp + +rhel8/moc_seaset.o: .moc/moc_seaset.cpp seaset.h sicsconn.h \ + seaplot.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o rhel8/moc_seaset.o .moc/moc_seaset.cpp + +rhel8/moc_seaplot.o: .moc/moc_seaplot.cpp seaplot.h seaset.h \ + sicsconn.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o rhel8/moc_seaplot.o .moc/moc_seaplot.cpp + +rhel8/moc_sicsconn.o: .moc/moc_sicsconn.cpp sicsconn.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o rhel8/moc_sicsconn.o .moc/moc_sicsconn.cpp + +rhel8/moc_tab.o: .moc/moc_tab.cpp tab.h graph.h \ + settings.h \ + device.h \ + export.h \ + report.h \ + seaset.h \ + sicsconn.h \ + seaplot.h \ + command.h \ + utils.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o rhel8/moc_tab.o .moc/moc_tab.cpp + +rhel8/moc_settings.o: .moc/moc_settings.cpp settings.h seaset.h \ + device.h \ + sicsconn.h \ + seaplot.h \ + command.h \ + utils.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o rhel8/moc_settings.o .moc/moc_settings.cpp + +rhel8/moc_command.o: .moc/moc_command.cpp command.h sicsconn.h \ + utils.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o rhel8/moc_command.o .moc/moc_command.cpp + +rhel8/moc_graph.o: .moc/moc_graph.cpp graph.h seaset.h \ + sicsconn.h \ + seaplot.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o rhel8/moc_graph.o .moc/moc_graph.cpp + +rhel8/moc_utils.o: .moc/moc_utils.cpp utils.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o rhel8/moc_utils.o .moc/moc_utils.cpp + +rhel8/moc_export.o: .moc/moc_export.cpp export.h seaset.h \ + sicsconn.h \ + seaplot.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o rhel8/moc_export.o .moc/moc_export.cpp + +rhel8/moc_report.o: .moc/moc_report.cpp report.h sicsconn.h \ + utils.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o rhel8/moc_report.o .moc/moc_report.cpp + +rhel8/moc_device.o: .moc/moc_device.cpp device.h seaset.h \ + command.h \ + sicsconn.h \ + seaplot.h \ + utils.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o rhel8/moc_device.o .moc/moc_device.cpp + +.moc/moc_main.cpp: $(MOC) main.h + $(MOC) main.h -o .moc/moc_main.cpp + +.moc/moc_seaset.cpp: $(MOC) seaset.h + $(MOC) seaset.h -o .moc/moc_seaset.cpp + +.moc/moc_seaplot.cpp: $(MOC) seaplot.h + $(MOC) seaplot.h -o .moc/moc_seaplot.cpp + +.moc/moc_sicsconn.cpp: $(MOC) sicsconn.h + $(MOC) sicsconn.h -o .moc/moc_sicsconn.cpp + +.moc/moc_tab.cpp: $(MOC) tab.h + $(MOC) tab.h -o .moc/moc_tab.cpp + +.moc/moc_settings.cpp: $(MOC) settings.h + $(MOC) settings.h -o .moc/moc_settings.cpp + +.moc/moc_command.cpp: $(MOC) command.h + $(MOC) command.h -o .moc/moc_command.cpp + +.moc/moc_graph.cpp: $(MOC) graph.h + $(MOC) graph.h -o .moc/moc_graph.cpp + +.moc/moc_utils.cpp: $(MOC) utils.h + $(MOC) utils.h -o .moc/moc_utils.cpp + +.moc/moc_export.cpp: $(MOC) export.h + $(MOC) export.h -o .moc/moc_export.cpp + +.moc/moc_report.cpp: $(MOC) report.h + $(MOC) report.h -o .moc/moc_report.cpp + +.moc/moc_device.cpp: $(MOC) device.h + $(MOC) device.h -o .moc/moc_device.cpp + +####### Install + +install: + +uninstall: + diff --git a/makefile b/makefile new file mode 100644 index 0000000..e5f37e7 --- /dev/null +++ b/makefile @@ -0,0 +1 @@ +include Makefile_$(linuxsys) diff --git a/publish b/publish new file mode 100755 index 0000000..b106332 --- /dev/null +++ b/publish @@ -0,0 +1,7 @@ +#!/bin/tcsh +cp -f $linuxsys/SeaClient $sys/stow/sea/bin/SeaClient +#cp -i sea2 $sys/stow/sea/bin/sea +#cp -i seassh $sys/stow/sea/bin/seassh +#cp -i seaWatcher $sys/stow/sea/bin/seaWatcher + +