38 lines
1.1 KiB
Makefile
38 lines
1.1 KiB
Makefile
#
|
|
# Makefile for the libstack library
|
|
#
|
|
# Copyright © 1997-1998 Erick Gallesio - I3S-CNRS/ESSI <eg@unice.fr>
|
|
#
|
|
# Permission to use, copy, and/or distribute this software and its
|
|
# documentation for any purpose and without fee is hereby granted, provided
|
|
# that both the above copyright notice and this permission notice appear in
|
|
# all copies and derived works. Fees for distribution or use of this
|
|
# software or derived works may only be charged with express written
|
|
# permission of the copyright holder.
|
|
# This software is provided ``as is'' without express or implied warranty.
|
|
#
|
|
# Author: Erick Gallesio [eg@unice.fr]
|
|
# Creation date: 27-Sep-1997 20:02
|
|
# Last file update: 1-Jan-1998 19:19
|
|
#
|
|
|
|
CFLAGS=@CFLAGS@
|
|
CC=@CC@
|
|
|
|
all: libstack.a
|
|
|
|
libstack.a: libstack.o libstack.h @LOW@
|
|
/bin/rm -f libstack.a
|
|
ar cqv libstack.a libstack.o @LOW@
|
|
@RANLIB@ libstack.a
|
|
|
|
test: testlib
|
|
./testlib | uniq -c
|
|
|
|
testlib: test.o libstack.a
|
|
$(CC) -o testlib test.o libstack.a
|
|
|
|
clean:
|
|
/bin/rm -f libstack.c lowstack.s lowstack.c *.o *~ config.* \
|
|
Makefile libstack.a testlib libstack.h
|