1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/graphics/SciPlot/files/patch-Imakefile
Thierry Thomas 679602a5c7 -std1 is not supported on alpha.
Reported by:	Kris / pointyhat.
2004-11-28 23:12:54 +00:00

66 lines
1.8 KiB
Plaintext

--- Imakefile.orig Thu Sep 5 04:32:58 1996
+++ Imakefile Sun Nov 28 18:14:34 2004
@@ -1,3 +1,4 @@
+# $FreeBSD$
XCOMM Imakefile for widget demo programs
#ifdef LinuxArchitecture
@@ -14,13 +15,13 @@
HDOC = hdoc
#endif
#ifdef AlphaArchitecture
- CC = cc -std1
+# CC = cc -std1
#endif
-MOTIF = $(LESSTIF) -lXm
+# MOTIF = $(LESSTIF) -lXm
MOTIFDEPS = $(DEPXMLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
-MOTIFLIBS = $(MOTIF) $(XMULIB) $(XTOOLLIB) $(XLIB)
+# MOTIFLIBS = $(MOTIF) $(XMULIB) $(XTOOLLIB) $(XLIB)
SYS_LIBRARIES = -lm
CDEBUGFLAGS =
@@ -28,6 +29,9 @@
PROGRAMS = sciplot realtime
TARFILE = sciplot
+SONUM = 0
+SONAME = $(LIBNAME).so
+
SRCS = SciPlot.c SciPlotUtil.c xyplot.c realtime.c
HDRS = SciPlot.h SciPlotP.h SciPlotUtil.h
OBJS = $(SRCS:.c=.o)
@@ -54,10 +58,10 @@
$(HDOC) $*.hdoc > $*.html
-AllTarget(sciplot realtime)
+AllTarget(sciplot realtime libs)
-NormalProgramTarget(sciplot,$(PLOTOBJS),$(MOTIFDEPS),$(MOTIFLIBS),$(SYS_LIBRARIES))
-NormalProgramTarget(realtime,$(RTOBJS),$(MOTIFDEPS),$(MOTIFLIBS),$(SYS_LIBRARIES))
+NormalProgramTarget(sciplot,$(PLOTOBJS),$(MOTIFDEPS),$(MOTIFLIB),$(SYS_LIBRARIES))
+NormalProgramTarget(realtime,$(RTOBJS),$(MOTIFDEPS),$(MOTIFLIB),$(SYS_LIBRARIES))
doc: $(HOBJS) $(HDOC)
@echo "Updated html."
@@ -79,9 +83,16 @@
tar cfv $(TARFILE).tar $(TARFILES)
compress $(TARFILE).tar
+libs: $(PLOTOBJS)
+ $(AR) $(LIBNAME).a $(WIDGET).o $(WIDGET)Util.o
+ $(RANLIB) $(LIBNAME).a
+ $(CC) $(SHLIBLDFLAGS) -o $(SONAME).$(SONUM) $(WIDGET).o $(WIDGET)Util.o \
+ $(LDFLAGS) $(MOTIFLIB) $(LDLIBS)
+
# Dependencies:
SciPlot.o: SciPlot.c SciPlotP.h SciPlot.h
SciPlotUtil.o: SciPlotUtil.c SciPlotUtil.h
xyplot.o: xyplot.c SciPlot.h SciPlotUtil.h
realtime.o: realtime.c SciPlot.h SciPlotUtil.h
+libsciplot.a: SciPlot.h SciPlotP.h SciPlotUtil.h SciPlot.c SciPlotUtil.c