- removed all stuff related to tecs
- allow short make command by means of SICS_MAKE_VERSION env.variable
This commit is contained in:
10
make_gen
10
make_gen
@ -63,7 +63,7 @@ OBJ = $(SOBJ) $(MOTOROBJ) $(COUNTEROBJ) $(VELOOBJ) $(DIFIL) $(EXTRA) $(EPICSOBJ)
|
||||
#--- This .SECONDARY. target is necessary to preserve generated .c files for debugging
|
||||
.SECONDARY.: sicspoll.c polldriv.c
|
||||
|
||||
all: libmat libhlib libtecsl libpsi SICServer
|
||||
all: libmat libhlib libpsi SICServer
|
||||
|
||||
# use this target when some of the libraries SUBLIBS might be incomplete
|
||||
full: purge all
|
||||
@ -81,12 +81,7 @@ $(SICSROOT)/sicspsi/hardsup/libhlib.a: libhlib
|
||||
libhlib:
|
||||
cd $(SICSROOT)/sicspsi/hardsup; make $(MFLAGS) libhlib.a
|
||||
|
||||
$(SICSROOT)/sicspsi/tecs/libtecsl.a: libtecsl
|
||||
|
||||
libtecsl:
|
||||
cd $(SICSROOT)/sicspsi/tecs; make $(MFLAGS) libtecsl.a
|
||||
|
||||
$SICSROOT)/sicspsi/libpsi.a: libpsi
|
||||
$(SICSROOT)/sicspsi/libpsi.a: libpsi
|
||||
|
||||
libpsi:
|
||||
cd $(SICSROOT)/sicspsi; make $(MFLAGS) libpsi.a
|
||||
@ -98,7 +93,6 @@ clean:
|
||||
rm -f *.o *.d SICServer
|
||||
cd $(SICSROOT)/sicspsi/hardsup; make $(MFLAGS) clean
|
||||
cd matrix; make $(MFLAGS) clean
|
||||
cd $(SICSROOT)/sicspsi/tecs; make $(MFLAGS) clean
|
||||
cd $(SICSROOT)/sicspsi; make $(MFLAGS) clean
|
||||
|
||||
Dbg.o: Dbg.c
|
||||
|
24
makefile
24
makefile
@ -1,22 +1,4 @@
|
||||
# M. Zolliker 03.2005
|
||||
# when SICS_MAKE_VERSION is defined: use this makefile version
|
||||
# if not: show usage (see makefile_)
|
||||
|
||||
%: usage
|
||||
@echo
|
||||
|
||||
%.o: usage
|
||||
@echo
|
||||
|
||||
default: usage
|
||||
|
||||
usage:
|
||||
@ echo ""
|
||||
@ echo "Usage:"
|
||||
@ echo ""
|
||||
@ echo " make -f makefile_xxx [target]"
|
||||
@ echo ""
|
||||
@ echo ' where makefile_xxx is one of'
|
||||
@ echo ""
|
||||
@ ls -1 makefile_* | pr -t -o 4
|
||||
|
||||
|
||||
# DO NOT DELETE
|
||||
include makefile_$(SICS_MAKE_VERSION)
|
||||
|
25
makefile_
Normal file
25
makefile_
Normal file
@ -0,0 +1,25 @@
|
||||
# M. Zolliker 03.2005
|
||||
# this file shows the correct usage of make in the sics source directory
|
||||
|
||||
%: usage
|
||||
@echo
|
||||
|
||||
%.o: usage
|
||||
@echo
|
||||
|
||||
default: usage
|
||||
|
||||
usage:
|
||||
@ echo ""
|
||||
@ echo "Usage:"
|
||||
@ echo ""
|
||||
@ echo " make -f makefile_xxx [target]"
|
||||
@ echo ""
|
||||
@ echo ' where makefile_xxx is one of'
|
||||
@ echo ""
|
||||
@ ls -1 makefile_?* | pr -t -o 4
|
||||
@ echo ""
|
||||
@ echo " or use make without args:"
|
||||
@ echo ""
|
||||
@ echo " setenv SICS_MAKE_VERSION slinux"
|
||||
@ echo " make [target]"
|
@ -19,8 +19,7 @@ CFLAGS = -I$(HDFROOT)/include $(DFORTIFY) -DHDF4 -DHDF5 \
|
||||
-g -std1 -warnprotos
|
||||
BINTARGET = bin
|
||||
EXTRA=
|
||||
SUBLIBS = psi/libpsi.a psi/hardsup/libhlib.a matrix/libmatrix.a \
|
||||
psi/tecs/libtecsl.a
|
||||
SUBLIBS = psi/libpsi.a psi/hardsup/libhlib.a matrix/libmatrix.a
|
||||
LIBS = -L$(HDFROOT)/lib $(SUBLIBS) \
|
||||
-ltcl -lfor $(HDFROOT)/lib/libhdf5.a \
|
||||
$(HDFROOT)/lib/libmfhdf.a $(HDFROOT)/lib/libdf.a \
|
||||
|
@ -22,8 +22,7 @@ CFLAGS = -I$(HDFROOT)/include -I/usr/include/hdf -I$(TCLINC) -DHDF4 -DHDF5 \
|
||||
|
||||
BINTARGET = bin
|
||||
EXTRA=nintf.o
|
||||
SUBLIBS = psi/libpsi.a psi/hardsup/libhlib.a matrix/libmatrix.a \
|
||||
psi/tecs/libtecsl.a
|
||||
SUBLIBS = psi/libpsi.a psi/hardsup/libhlib.a matrix/libmatrix.a
|
||||
LIBS = -L$(HDFROOT)/lib $(SUBLIBS) $(NILIB)\
|
||||
-ltcl -lNeXus -lhdf5 -lmfhdf -ldf \
|
||||
-lmxml -lghttp -ljpeg -ljson -ldl -lz -lm -lc
|
||||
|
@ -22,8 +22,7 @@ CFLAGS = -I$(HDFROOT)/include -I/sw/include -DNXXML -DHDF5 -DHDF4 $(NI) -DMACOSX
|
||||
|
||||
BINTARGET = bin
|
||||
EXTRA=nintf.o
|
||||
SUBLIBS = psi/libpsi.a psi/hardsup/libhlib.a matrix/libmatrix.a \
|
||||
psi/tecs/libtecsl.a
|
||||
SUBLIBS = psi/libpsi.a psi/hardsup/libhlib.a matrix/libmatrix.a
|
||||
LIBS = -L$(HDFROOT)/lib -L/sw/lib $(SUBLIBS) $(NILIB)\
|
||||
-ltcl $(HDFROOT)/lib/libhdf5.a -lmfhdf -ldf \
|
||||
$(HDFROOT)/lib/libsz.a \
|
||||
|
@ -28,7 +28,7 @@ CFLAGS = -I$(HDFROOT)/include -DNXXML -DHDF5 $(NI) \
|
||||
BINTARGET = bin
|
||||
EXTRA=nintf.o
|
||||
SUBLIBS = $(SICSROOT)/sicspsi/libpsi.a $(SICSROOT)/sicspsi/hardsup/libhlib.a \
|
||||
matrix/libmatrix.a $(SICSROOT)/sicspsi/tecs/libtecsl.a
|
||||
matrix/libmatrix.a
|
||||
LIBS = -L$(HDFROOT)/lib $(SUBLIBS) $(NILIB) $(EPICSLIBS) \
|
||||
-ltcl -lNeXus $(HDFROOT)/lib/libhdf5.a \
|
||||
$(HDFROOT)/lib/libsz.a \
|
||||
|
Reference in New Issue
Block a user