head     1.3;
access   ;
symbols  ;
locks    rey:1.3; strict;
comment  @# @;


1.3
date     98.06.10.15.07.35;  author rey;  state Exp;
branches ;
next     1.2;

1.2
date     98.06.04.11.33.12;  author rey;  state Exp;
branches ;
next     1.1;

1.1
date     98.06.04.11.30.22;  author rey;  state Exp;
branches ;
next     ;


desc
@First master version
@


1.3
log
@Implements SfUpdate and corrects some bugs ( SfMotorPos )
@
text
@# RcsId: $Header: Makefile,v 1.2 98/06/04 11:33:12 rey Exp $
#____________________________________________________________________________
#
#    File:          Makefile  
#
#    Project:       specfile
#
#    Description:   Makefile for program extract (for gmake)
#                   (use gmake for this platform. doit for all platforms)
#
#    Author:        Vicente Rey Bakaikoa
#
#    $Log:	Makefile,v $
# Revision 1.2  98/06/04  11:33:12  11:33:12  rey (Vicente Rey-Bakaikoa)
# n
# First master version
# 
# Revision 1.1  98/06/04  11:30:22  11:30:22  rey (Vicente Rey-Bakaikoa)
# Initial revision
# 
# Revision 1.1  98/04/28  16:42:04  16:42:04  rey (Vicente Rey-Bakaikoa)
# Initial revision
# 
# Revision 1.1  97/06/03  16:39:41  16:39:41  rey (Vicente Rey-Bakaikoa)
# Initial revision
# 
#____________________________________________________________________________
#
TARGET    = libspecfile.a
FILENAMES = lists specfile
MODULE    = $(FILENAMES:%=%.o)
MAKEFILE  = Makefile

RCSFILES  = specfile.c \
	    lists.c \
	    Makefile \
            ../include/SpecFile.h \
	    ../include/SpecFileP.h \
	    ../include/Lists.h

#CC        = gcc -ansi -pedantic -g
CC        = gcc 
LIBOPTS   = ru

SPECFILEDIR = $(HOME)/specfile
LIBS        = -lspecfile -lm

INCLUDES = -I$(SPECFILEDIR)/include

#
# Find out which host machine we are on
#
OSTYPE	= $(shell uname -s)
RELEASE	= $(shell uname -r)

#
# Define the defaults for HP 
#
ifeq ($(firstword $(OSTYPE)), HP-UX)
  ifeq ($(findstring 09.0, $(RELEASE)), 09.0)
    OSDIR = hp700
    OSFLAGS = -DHPUX9
  else
    OSDIR = hp10
    OSFLAGS = -DHPUX10
  endif
  ARCMD = ar
endif

ifeq ($(firstword $(OSTYPE)), SunOS)
  ifeq ($(findstring 5., $(RELEASE)), 5.)
    OSDIR = solaris
    OSFLAGS = -DSOLARIS
    ARCMD = /usr/ccs/bin/ar
  else
    OSDIR = sun4
    ARCMD = ar
    OSFLAGS = -DSUN4
  endif
endif

ifeq ($(firstword $(OSTYPE)), Linux)
    OSDIR = linux
    OSLIB = linux
    ARCMD = ar
endif

ifeq ($(firstword $(OSTYPE)), IRIX)
    OSDIR = irix
    OSLIB = irix
    ARCMD = ar
endif

SRC_PATH    = ..

all: 
	@@echo $(OSDIR); cd $(OSDIR); gmake $(TARGET) -f $(SRC_PATH)/$(MAKEFILE)

CFLAGS   = $(INCLUDES) $(OSFLAGS)

$(TARGET): $(MODULE)
	@@echo "   Archiving..."
	$(ARCMD) $(LIBOPTS) $(TARGET) $(MODULE)

%.o : $(SRC_PATH)/%.c  
	@@echo "   Compiling " $*.c
	$(CC) $(CFLAGS) -c $(SRC_PATH)/$*.c

clean:
	@@rm $(OSDIR)/$(TARGET)

ci:
	@@ci -l $(RCSFILES)
@


1.2
log
@n
First master version
@
text
@d1 1
a1 1
# RcsId: $Header: Makefile,v 1.1 98/06/04 11:30:22 rey Exp $
d14 4
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# RcsId: $Header: Makefile,v 1.1 98/04/28 16:42:04 rey Exp $
d14 3
d30 7
d107 3
@
