home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 Mobile / Chip_Mobile_2001.iso / palm / tools / nosecuri / nosecuri.EXE / Makefile < prev    next >
Encoding:
Makefile  |  1999-08-17  |  1.4 KB  |  59 lines

  1. #==============================================================================
  2. # $Id: Makefile,v 1.1 1999/05/25 09:04:12 hofer Exp hofer $
  3. #==============================================================================
  4.  
  5. NAME = nosecurity
  6. DBNAME = "No Security"
  7. CREATOR = NoSe
  8.  
  9. HEADERS = resources.h
  10. OBJECTS = nosecurity.o
  11. BITMAPS = icon.bmp smallicon.bmp
  12.  
  13. SHELL = /bin/sh
  14. BIN = /home/hofer/palm/bin
  15. CC = $(BIN)/m68k-palmos-coff-gcc
  16. CFLAGS = -Wall -Wno-switch -ggdb -O2
  17. OBJRES = $(BIN)/m68k-palmos-coff-obj-res
  18. BUILDPRC = $(BIN)/build-prc
  19. PILRC = $(BIN)/pilrc
  20.  
  21. #------------------------------------------------------------------------------
  22.  
  23. all: $(NAME).prc
  24.  
  25. nosecurity.o: nosecurity.c
  26.  
  27. # build the prc
  28. $(NAME).prc: bin.stamp grc.stamp
  29.     $(BUILDPRC) $(NAME).prc $(DBNAME) $(CREATOR) *.grc *.bin 
  30.     ls -l *.prc
  31.  
  32. # link objects and generate code resources (.grc)
  33. grc.stamp: $(OBJECTS)
  34.     $(CC) $(CFLAGS) -o $(NAME) $(OBJECTS)
  35.     -rm *.grc
  36.     $(OBJRES) $(NAME)
  37.     touch grc.stamp
  38.  
  39. # generate resources (.bin)
  40. bin.stamp: resources.rcp $(BITMAPS) README.TXT
  41.     -rm *.bin
  42.     $(PILRC) resources.rcp
  43.     touch bin.stamp
  44.  
  45. # compile a module
  46. .c.o: $(HEADERS)
  47.     $(CC) $(CFLAGS) -c -o $*.o $*.c
  48.  
  49. # nuke the non-source files (and emacs backups)
  50. clean:
  51.     -rm *.bin *.grc *~ *.o *.stamp $(NAME)
  52.  
  53. # make the distribution zip file
  54. zip: $(NAME).prc
  55.     -rm *.zip
  56.     zip $(NAME) *.TXT *.prc *.c *.h *.rcp *.bmp Makefile
  57.  
  58. #==============================================================================
  59.