home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / cdrom / mkisofs.105 / source / makefile < prev    next >
Makefile  |  1977-12-31  |  1KB  |  51 lines

  1. #CFLAGS=-g -Wall -c
  2. #CC=gcc
  3.  
  4. #
  5. # XCFLAGS is automatically set by Configure.
  6. #
  7. XCFLAGS=
  8. XCFLAGS= -DHASSYSMACROS -DHASMALLOC_H
  9. CFLAGS=-O2 -c $(XCFLAGS)
  10. LDFLAGS=
  11. OBJS=mkisofs.o tree.o write.o hash.o rock.o exclude.o
  12.  
  13. World: mymkisofs
  14.  
  15. Makefile: Makefile.in Configure
  16.     ./Configure
  17.     echo "Type make again to build mkisofs."
  18.  
  19. mymkisofs: Makefile $(OBJS) 
  20.     $(CC) $(LDFLAGS) -o mymkisofs  $(OBJS)
  21.  
  22. install: mkisofs mkisofs.8
  23.     strip mkisofs
  24.     cp mkisofs /usr/bin/
  25.     if [ -d /usr/man/man8 ]; then cp mkisofs.8 /usr/man/man8/; fi
  26.  
  27. tree.o: tree.c mkisofs.h iso9660.h exclude.h
  28.     $(CC) $(CFLAGS) tree.c
  29.  
  30. write.o: write.c mkisofs.h iso9660.h
  31.     $(CC) $(CFLAGS) write.c
  32.  
  33. hash.o: hash.c mkisofs.h 
  34.     $(CC) $(CFLAGS) hash.c
  35.  
  36. rock.o: rock.c mkisofs.h iso9660.h
  37.     $(CC) $(CFLAGS) rock.c
  38.  
  39. exclude.o: exclude.c exclude.h
  40.     $(CC) $(CFLAGS) exclude.c
  41.  
  42. mkisofs.o: mkisofs.c iso9660.h mkisofs.h exclude.h
  43.     $(CC) $(CFLAGS) mkisofs.c
  44.  
  45. clean:
  46.     /bin/rm -f *.o core mymkisofs *~ #*#
  47.  
  48. dist:
  49.     tar -cvf - README Configure Makefile.in make.com TODO  COPYING  ChangeLog *.8 *.c *.h diag cdwrite.old cdwrite-1.5 | gzip > mkisofs-1.05.tar.gz
  50.  
  51.