"Fossies" - the Fresh Open Source Software Archive

Member "quotactl-1.00/quotause/Makefile" (30 Oct 2005, 1106 Bytes) of package /linux/privat/old/quotactl-1.00.tgz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 SRCDIR = ..
    2 
    3 WARNINGS = -Wall -Wmissing-declarations -Wundef -Wimplicit -Wwrite-strings \
    4 	-W -Winline \
    5 	-Wstrict-prototypes -Wmissing-prototypes \
    6 	-Werror
    7 
    8 CC = gcc
    9 
   10 CFLAGS = $(WARNINGS) -g -O0
   11 
   12 INCLUDES = -I $(SRCDIR)/include
   13 
   14 GIRAFFE_LIB = $(SRCDIR)/giraffe/giraffe.a
   15 
   16 QUOTAIO_OBJECTS = \
   17   quotaio.o \
   18   quotaio_v1.o \
   19   quotaio_v2.o \
   20 
   21 QUOTAUSE_OBJECTS = \
   22   quotause.o \
   23   quotause_v1.o \
   24   quotause_v2.o \
   25   $(QUOTAIO_OBJECTS) \
   26   dquothash.o \
   27   misc.o
   28 
   29 QUOTAREPT_OBJECTS = \
   30   quotarept.o \
   31   $(QUOTAIO_OBJECTS) \
   32   dquothash.o \
   33   misc.o \
   34 
   35 default: all
   36 
   37 all: quotause quotarept
   38 
   39 %.o:%.c
   40 	$(CC) -c $< $(CFLAGS) $(INCLUDES) $(CFLAGS_PERSONAL) $(CADD)
   41 
   42 quotause: $(QUOTAUSE_OBJECTS) $(GIRAFFE_LIB)
   43 	$(CC) -o $@ $^ $(LADD)
   44 
   45 quotarept: $(QUOTAREPT_OBJECTS) $(GIRAFFE_LIB)
   46 	$(CC) -o $@ $^ $(LADD)
   47 
   48 $(GIRAFFE_LIB): FORCE
   49 	$(MAKE) -C $(dir $@) $(notdir $@)
   50 
   51 
   52 .PHONY: clean
   53 clean:
   54 	rm --force *.o quotause quotarept
   55 
   56 .PHONY: distclean
   57 distclean: clean
   58 	>Makefile.depend
   59 
   60 Makefile.depend:
   61 	echo >$@
   62 
   63 .PHONY: dep
   64 dep:
   65 	$(CC) -MM -MG -I. $(INCLUDES) *.c >Makefile.depend
   66 
   67 
   68 include Makefile.depend
   69 
   70 FORCE: