home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-01-29 | 783 b | 47 lines |
- #
- # @(#) Makefile 1.1 91/01/26
- #
- # Copyright (C) 1991 by Christian Schlichtherle
- # (chris@attron.ruhr.sub.org)
- #
- # Permission is hereby granted to use, copy, modify or distribute
- # this file at will unless this copyright notice is removed.
- # The author disclaims any kind of warranty.
- #
- # Makefile - Makefile for binst(C).
- #
-
- #
- # Compiler and linker flags.
- #
- CC = cc
- CFLAGS = -Ms2 -i
- LDFLAGS = -s
- LIBS =
-
- #
- # Owner, group and mode of the installed program.
- #
- OWNER = root
- GROUP = root
- MODE = 6711
- # Destination directory
- BIN = /u/bin
-
- binst: binst.c
- $(CC) $(CFLAGS) $(LDFLAGS) $? -o $@ $(LIBS)
-
- install: $(BIN)/binst
-
- $(BIN)/binst: binst
- cp $? $@
- chown $(OWNER) $@
- chgrp $(GROUP) $@
- chmod $(MODE) $@
-
- uninstall:
- rm -f $(BIN)/binst
-
- clean:
- rm -f a.out core *.o binst
-