home *** CD-ROM | disk | FTP | other *** search
/ Hackers Toolkit 2.0 / Hackers_Toolkit_v2.0.iso / HTML / archive / Unix / c-src / atap.c / Makefile < prev    next >
Encoding:
Makefile  |  1999-11-04  |  1.6 KB  |  65 lines

  1. # @(#)Makefile    1.25 5/8/93
  2. ###############################################################################
  3. #
  4. #          --- kernel loadable-module tap streams-module/driver pseudo-device ---
  5. #
  6. #     SEE ALSO
  7. #        modload(8)
  8. #        modunload(8)
  9. #        modstat(8)
  10. #        vd(4)
  11. #
  12. # TAPDEBUG  -to show the tap structure every time a modstat(8) is started 
  13. #
  14. # TAPVD     -indicates kernel-loadable version
  15. #
  16. # TAPVDDUAL -must be defined only if a driver is already linked to /vmunix
  17. #            and a additional loadable-driver should be loaded w/o confusing
  18. #         duplicate module-names ( "tapc"/"tap" strings are changed
  19. #         to "tapcvd"/"tapvd" )
  20. #
  21. ###############################################################################
  22. #
  23. # TAPCLONE  -WARNING define ONLY after you have read the BUGS section 
  24. #            in the README file
  25. #
  26. ###############################################################################
  27.  
  28. CFLAGS=    -O -DKERNEL -D`arch -k` -DTAPVD # -DTAPDEBUG ### -DTAPCLONE
  29. INSDIR=    /usr/local/etc
  30. FILES=    README INSTALL Makefile load unload tap.c tap.h tapmon.c streams.c
  31. MIDF=    /tmp/MODULE_ID             # removed by reboot(8) and ./unload
  32.  
  33. all:    EXECS $(FILES) streams tapmon module
  34.  
  35. module:    tap.o  
  36.     if( test -f $(MIDF) ) then \
  37.         ./unload ; \
  38.     fi
  39.     modload -exec ./load tap.o
  40.     modstat
  41.  
  42. tap.c:    tap.h
  43.  
  44. EXECS:    load unload
  45.     chmod a+x load unload
  46.     touch $@                 # WELCOME TO WATER-WORKS ...
  47.  
  48. edit:
  49.     sccs edit $(FILES)
  50.     chmod a+x load unload
  51.  
  52. delta:
  53.     sccs delta $(FILES)
  54.  
  55. install:streams tapmon
  56.     install -s -m 755 -o bin -g bin streams $(INSDIR)
  57.     install -s -m 755 -o bin -g bin tapmon $(INSDIR)
  58.  
  59. clean:
  60.     rm -f     EXECS tap.o tap tapmon streams
  61.  
  62. shar:    $(FILES)
  63.     shar -c $(FILES) > tap1.25.shar
  64.  
  65.