home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Security / Security.zip / idea-v11.zip / Makefile.OS2 < prev    next >
Makefile  |  1994-09-29  |  740b  |  25 lines

  1. # make          is used to build user command 'idea'
  2. # make test     is used to test correctness of user command 'idea'
  3. # make lint     is used for debugging
  4. #
  5. # If 'ANSI_C' is defined in 'idea.h' then the preprocessed source code is
  6. # ANSI-C or C++ code, otherwise it is Kerninghan & Ritchie C code.
  7. #
  8. # change the next line such that your C-compiler is used
  9. CC      = gcc -O2 -fexpensive-optimizations -Zomf -Zmtd
  10.  
  11. all:    idea.exe
  12.  
  13. idea.exe:    idea_cmd.c idea.c idea.h
  14.     $(CC) -s -o idea.exe idea_cmd.c idea.c -lemxio -lwrap
  15.  
  16. dumphex.exe:    dumphex.c
  17.     $(CC) -s -o dumphex.exe dumphex.c -lemxio -lwrap
  18.  
  19. test:    idea.exe dumphex.exe idea.h
  20.     test1.cmd
  21.     diff out Examples >nul && echo Test passed.
  22.  
  23. clean:
  24.     del *.obj *.exe out
  25.