1####################################################################### 2# BEGIN LICENSE BLOCK 3# Version: CMPL 1.1 4# 5# The contents of this file are subject to the Cisco-style Mozilla Public 6# License Version 1.1 (the "License"); you may not use this file except 7# in compliance with the License. You may obtain a copy of the License 8# at www.eclipse-clp.org/license. 9# 10# Software distributed under the License is distributed on an "AS IS" 11# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See 12# the License for the specific language governing rights and limitations 13# under the License. 14# 15# The Original Code is The ECLiPSe Constraint Logic Programming System. 16# The Initial Developer of the Original Code is Cisco Systems, Inc. 17# Portions created by the Initial Developer are 18# Copyright (C) 2006 Cisco Systems, Inc. All Rights Reserved. 19# 20# Contributor(s): Joachim Schimpf, ECRC. 21# 22# END LICENSE BLOCK 23# 24# $Id: Makefile.in,v 1.1 2006/09/23 01:56:26 snovello Exp $ 25# 26####################################################################### 27 28ARCH = @ARCH@ 29CC = @CC@ 30CFLAGS = @CFLAGS@ @OPT_FLAGS@ 31CPPFLAGS = -I. 32LIBS = @LIBS@ 33RANLIB = @RANLIB@ 34LOCK = @LOCK@ 35 36AR = ar ruv 37RM = /bin/rm -f 38CP = /bin/cp 39 40SYS_LIB = ../../sys_lib/$(ARCH) 41SYS_INCLUDE = ../../sys_include 42 43VPATH = ../src 44 45SHM_OBJ = alloc.o mutex.o private_mem.o shared_mem.o shmem_base.o $(LOCK) 46 47SHM_TARGETS = $(SYS_LIB)/libshm.a $(SYS_INCLUDE)/memman.h 48 49.S.o: 50 @S_TO_O@ 51 52 53all: libshm.a 54 55install: $(SHM_TARGETS) 56 57 58$(SYS_LIB)/%.a: %.a 59 mkdir -p $(SYS_LIB) 60 $(CP) $< $@ 61 $(RANLIB) $@ 62 63$(SYS_INCLUDE)/%.h: %.h 64 mkdir -p $(SYS_INCLUDE) 65 $(CP) $< $@ 66 67 68libshm.a: $(SHM_OBJ) 69 ar rcv libshm.a $(SHM_OBJ) 70 $(RANLIB) libshm.a 71 72alloc.o: config.h memman.h 73mutex.o: config.h memman.h 74private_mem.o: config.h memman.h 75shared_mem.o: config.h memman.h 76shmem_base.o: config.h 77 78example: example.c libshm.a 79 $(CC) $(CFLAGS) $(CPPFLAGS) -o example example.c libshm.a 80 $(RM) map? 81 ./example 82 83clean: archclean 84 85archclean: 86 $(RM) $(SHM_TARGETS) 87 $(RM) *.o *.a 88 $(RM) example map? 89 $(RM) config.status 90 91distclean: clean 92 $(RM) Makefile config.h 93 $(RM) config.cache config.log 94 95