"SfR Fresh" - the SfR Freeware/Shareware Archive

Member "wdsetup-0.6b/Makefile" of archive wdsetup-0.6b.tar.gz:


As a special service "SfR Fresh" has tried to format the requested source page into HTML format using source code syntax highlighting with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
    1 #
    2 # Makefile for wdsetup
    3 #
    4 CC = gcc
    5 AS = gas
    6 CFLAGS = -O -Wall -g
    7 
    8 .c.o:
    9 	$(CC) $(CFLAGS) \
   10 	-c -o $*.o $<
   11 .s.o:
   12 	$(AS) -o $*.o $<
   13 .c.s:
   14 	$(CC) $(CFLAGS) \
   15 	-S -o $*.s $<
   16 
   17 OBJS	= wdsetup.o
   18 
   19 wdsetup: $(OBJS)
   20 	$(CC) -g -o wdsetup $(OBJS)
   21 
   22 subdirs: dummy
   23 	for i in $(SUBDIRS); do (cd $$i; $(MAKE)); done
   24 
   25 
   26 clean:
   27 	rm -f core *.o *.a *.s wdsetup
   28 
   29 dep:
   30 	$(CPP) -M *.c > .depend
   31 
   32 tar:
   33 	tar -cvf /dev/fd0 .
   34 
   35 #
   36 # include a dependency file if one exists
   37 #
   38 ifeq (.depend,$(wildcard .depend))
   39 include .depend
   40 endif