- Added makefiles for linux

This commit is contained in:
cvs
2003-06-20 12:26:45 +00:00
parent 30ade6a8c6
commit 9696421d66
6 changed files with 65 additions and 13 deletions

View File

@ -6,10 +6,10 @@
# Markus Zolliker, March 2003 # Markus Zolliker, March 2003
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
# the following line only for fortified version # the following line only for fortified version
DFORTIFY=-DFORTIFY #DFORTIFY=-DFORTIFY
#========================================================================== #==========================================================================
CC = gcc CC = gcc
CFLAGS = -g -DLINUX $(DFORTIFY) -I$(SRC). -I$(SRC).. -I../src CFLAGS = -g -DLINUX $(DFORTIFY) -I$(SRC). -I.. -I../..
include $(SRC)make_gen include $(SRC)make_gen

20
makefile_linux Normal file
View File

@ -0,0 +1,20 @@
#---------------------------------------------------------------------------
# Makefile for SICS
# machine-dependent part for Redhat Linux with AFS at PSI
#
# Mark Koennecke 1996-2001
# Markus Zolliker, March 2003
#==========================================================================
# the following lines only for fortified version
#DFORTIFY=-DFORTIFY
#FORTIFYOBJ=strdup.o fortify.o
#==========================================================================
CC = gcc
CFLAGS = -I$(HDFROOT)/include -DHDF4 -DHDF5 $(NI) -Ihardsup \
-I../ -fwritable-strings -DCYGNUS -DNONINTF -g $(DFORTIFY)
HDFROOT=/afs/psi.ch/project/sinq/linux
EXTRA=nintf.o
include make_gen

View File

@ -1,5 +1,5 @@
#line 63 "sinqhmdriv.w" #line 64 "sinqhmdriv.w"
/*-------------------------------------------------------------------------- /*--------------------------------------------------------------------------
S I N Q H M S I N Q H M
@ -24,18 +24,19 @@
HistMode eHistMode; HistMode eHistMode;
int iBinWidth; int iBinWidth;
OverFlowMode eFlow; OverFlowMode eFlow;
int extraDetector;
} SinqHMDriv; } SinqHMDriv;
#line 76 "sinqhmdriv.w" #line 77 "sinqhmdriv.w"
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
#line 58 "sinqhmdriv.w" #line 59 "sinqhmdriv.w"
pHistDriver CreateSINQDriver(pStringDict pOption); pHistDriver CreateSINQDriver(pStringDict pOption);
int isSINQHMDriv(pHistDriver test); int isSINQHMDriv(pHistDriver test);
#line 78 "sinqhmdriv.w" #line 79 "sinqhmdriv.w"
#endif #endif

View File

@ -28,6 +28,7 @@ already reflected by the driver private data structure:
HistMode eHistMode; HistMode eHistMode;
int iBinWidth; int iBinWidth;
OverFlowMode eFlow; OverFlowMode eFlow;
int extraDetector;
} SinqHMDriv; } SinqHMDriv;
@} @}

View File

@ -11,18 +11,48 @@
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>
#include <tcl.h> #include <tcl.h>
#include "fortify.h" #include <fortify.h>
#include "sics.h" #include <sics.h>
#include "SCinter.h" #include <SCinter.h>
#include "splitter.h" #include <splitter.h>
#include "hardsup/sinq_prototypes.h" #include "hardsup/sinq_prototypes.h"
#include "hardsup/rs232c_def.h" #include "hardsup/rs232c_def.h"
#include "hardsup/el734_def.h" #include "hardsup/el734_def.h"
#include "hardsup/el734fix.h" #include "hardsup/el734fix.h"
#include "modriv.h" #include <modriv.h>
#include "swmotor.h" #include "swmotor.h"
#include "swmotor.i" #include "swmotor.i"
typedef struct __MoDriv {
/* general motor driver interface
fields. REQUIRED!
*/
float fUpper; /* upper limit */
float fLower; /* lower limit */
char *name;
int (*GetPosition)(void *self,float *fPos);
int (*RunTo)(void *self, float fNewVal);
int (*GetStatus)(void *self);
void (*GetError)(void *self, int *iCode, char *buffer, int iBufLen);
int (*TryAndFixIt)(void *self,int iError, float fNew);
int (*Halt)(void *self);
int (*GetDriverPar)(void *self, char *name,
float *value);
int (*SetDriverPar)(void *self,SConnection *pCon,
char *name, float newValue);
void (*ListDriverPar)(void *self, char *motorName,
SConnection *pCon);
void (*KillPrivate)(void *self);
/* EL-734 specific fields */
int iPort;
char *hostname;
int iChannel;
int iMotor;
void *EL734struct;
int iMSR;
} EL734Driv;
/*======================================================================== /*========================================================================
We start of by implementing the interface functions for the various We start of by implementing the interface functions for the various
interfaces this module has to implement. interfaces this module has to implement.

View File

@ -14,7 +14,7 @@ SICS=$(SRC)..
CC = gcc CC = gcc
FC = g77 FC = g77
CFLAGS = -DLINUX -g $(DFORTIFY) CFLAGS = -DLINUX -g $(DFORTIFY) -I../..
FFLAGS = -u -fvxt -g FFLAGS = -u -fvxt -g
ARFLAGS = cr ARFLAGS = cr
@ -26,7 +26,7 @@ PGPLOT =/afs/psi.ch/user/z/zolliker/pgplot/
PGLIB =$(PGPLOT)/libpgplot.a -L/usr/X11R6/lib -lX11 PGLIB =$(PGPLOT)/libpgplot.a -L/usr/X11R6/lib -lX11
# -- library for ASYNSRV # -- library for ASYNSRV
HARDSUPLIB=$(SICST)/hardsup/libhlib.a HARDSUPLIB=../hardsup/libhlib.a
# -- readline library # -- readline library
RDLIB =-lreadline -ltermcap RDLIB =-lreadline -ltermcap