1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
# Generated automatically from Makefile.in by configure.
# Makefile for the NT filesystem user part
#
# Copyright (C) 1997 Rgis Duchesne
#
# Note : Do 'make clean_makespace' each time you modify this Makefile.
# Does anybody know how to include dependancies in a portable way?
# Files
# Programs to build
PRG = ../ntdir ../ntgrep ../ntcat ../ntcp
SPRG = ../ntdump ../ntchange
# Programs
CC = gcc
INSTALL = /usr/bin/install -c
# Compilation flags
# To reach config.h
CFLAGS = -I..
# To reach the common stuff
CFLAGS += -I../common
# Warnings
CFLAGS += -Wall -Wstrict-prototypes
# Debug option
CFLAGS += -O2 -fomit-frame-pointer
# Flags from 'configure'
CFLAGS += -pipe -fno-strength-reduce -DHAVE_CONFIG_H
all: force $(PRG) $(SPRG)
# Note : Solaris 'make' doesn't support the $^ variable
DEP_NTDIR = ntdir.o support.o ../common/util.o nttools.o ../common/dir.o ../common/inode.o ../common/super.o ../common/attr.o
../ntdir: $(DEP_NTDIR)
$(CC) -o $@ $(DEP_NTDIR)
DEP_NTDUMP = ntdump.o dump.o support.o ../common/util.o nttools.o ../common/dir.o ../common/inode.o ../common/super.o ../common/attr.o
../ntdump: $(DEP_NTDUMP)
$(CC) -o $@ $(DEP_NTDUMP)
DEP_NTGREP = ntgrep.o dump.o support.o ../common/util.o nttools.o ../common/dir.o ../common/inode.o ../common/super.o ../common/attr.o
../ntgrep: $(DEP_NTGREP)
$(CC) -o $@ $(DEP_NTGREP)
DEP_NTCAT = ntcat.o support.o ../common/util.o nttools.o ../common/dir.o ../common/inode.o ../common/super.o ../common/attr.o
../ntcat: $(DEP_NTCAT)
$(CC) -o $@ $(DEP_NTCAT)
DEP_NTCHANGE = ntchange.o support.o ../common/util.o nttools.o ../common/dir.o ../common/inode.o ../common/super.o ../common/attr.o
../ntchange: $(DEP_NTCHANGE)
$(CC) -o $@ $(DEP_NTCHANGE)
DEP_NTCP = ntcp.o support.o ../common/util.o nttools.o ../common/dir.o ../common/inode.o ../common/super.o ../common/attr.o
../ntcp: $(DEP_NTCP)
$(CC) -o $@ $(DEP_NTCP)
# Note : Solaris 'make' implicit rule is different
# Note : Some 'make' doesn't support $< in _explicit_ rules
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
# Put the tree in its scratch state
clean: force clean_workspace clean_makespace
# Remove work files from the work space
clean_workspace: force
@rm -f core *~; \
echo User workspace is now clean
# Remove files created by this Makefile
clean_makespace: force
@rm -rf $(DDIR) *.o $(PRG) $(SPRG); \
echo User makespace is now clean
# Install the binaries
install: force all
$(INSTALL) -d $(DESTDIR)/usr/bin $(DESTDIR)/usr/sbin
$(INSTALL) -s $(PRG) $(DESTDIR)/usr/bin
$(INSTALL) -s $(SPRG) $(DESTDIR)/usr/sbin
# This target doesn't generate a 'force' file. A target 'foo' depending on
# 'force' is therefore forced to be updated, even if a 'foo' file exists
force:
|