home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-03-08 | 718 b | 41 lines |
- # makefile for memdebug
- # J.Borst 27/1/94
- #
- C_SRCS = memalpha.c memdebug.c memfree.c
- H_SRCS = memalpha.h memdebug.h memfree.h memtypes.i
- MISC = README Memdebug.ps makefile
- CFLAGS = -g
- CC = gcc
-
- LIBDIR = /usr/local/lib
- INCDIR = /usr/local/include
- PUBSRC = memdebug.h
-
- SOURCES = $(C_SRCS) $(H_SRCS)
- FILES = $(SOURCES) $(MISC)
-
- OBJECTS = memalpha.o memdebug.o memfree.o
- LIB = libmemdb.a
-
- all: $(LIB)
-
- $(LIB): $(OBJECTS)
- ar rv $@ $(OBJECTS)
-
- bundle: $(FILES)
- @bundle $(FILES)
-
- sources:
- @echo $(SOURCES)
-
- files:
- @echo $(FILES)
-
- install:
- install -g staff -m 644 -o root $(LIB) $(LIBDIR)
- ranlib $(LIBDIR)/$(LIB)
- install -g staff -m 644 -o root $(PUBSRC) $(INCDIR)
-
- clean:
- rm -f $(LIB) $(OBJECTS)
-