home *** CD-ROM | disk | FTP | other *** search
/ Education Sampler 1992 [NeXTSTEP] / Education_1992_Sampler.iso / Programming / Classes / CryptSums / Makefile.preamble < prev    next >
Encoding:
Makefile  |  1992-05-16  |  838 b   |  20 lines

  1. # Set password that won't be obvious looking binary via 'strings'
  2. CS_PASSWORD = MenuCell
  3.  
  4. # These definitions are used here and in Makefile.postamble
  5. CS_SEGMENT = __CRYPTSUM
  6. CS_SECTION = __table
  7.  
  8. # -I. switch depends where cryptsum.h is, here we assume 'pwd'
  9. # *CFLAGS variables are evaled several times so multiply quote strings 
  10. SECURE_CFLAGS = -I. -DPASSWORD='\"$(CS_PASSWORD)\"'
  11.  
  12. # -L switch depends where libcryptsum.a is, here we assume 'pwd'
  13. # -segcreate installs dummy section to preallocate for later segedit
  14. SECURE_LDFLAGS = -L. -segcreate $(CS_SEGMENT) $(CS_SECTION) dummy.cryptsums
  15.  
  16. # Only compile libcryptsum.a into binary if were doing 'make secure'
  17. SECURE_LIBS = -lcryptsum
  18.  
  19. # Remove secure version of application and checksums for 'make clean'
  20. OTHER_GARBAGE = $(NAME).unsecure $(NAME).secure $(NAME).cryptsums unsecure_obj