home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / palmos / stepcounter-1.3.tar.gz / stepcounter-1.3.tar / stepcounter-1.3 / tilt_p3 / Makefile next >
Makefile  |  1999-10-27  |  757b  |  35 lines

  1. #  Tilt sensor lib
  2.  
  3. LIBNAME = tilt_p3
  4. CREATOR = Tilt
  5.  
  6. OBJECTS = $(LIBNAME).o tilt_asm.o
  7.  
  8. CC = m68k-palmos-coff-gcc -nostartfiles
  9. XTRALIBS =
  10. OBJRES = m68k-palmos-coff-obj-res
  11. BUILDPRC = build-prc -L
  12. CSFLAGS = -O2 -S
  13.  
  14. .S.o:
  15.     $(CC) $(TARGETFLAGS) -c $<
  16.  
  17. $(LIBNAME).prc: libr0000.$(LIBNAME).grc
  18.     $(BUILDPRC) $@ "P3/Pro Tilt Library" $(CREATOR) libr0000.$(LIBNAME).grc tver0001.bin
  19.     m68k-palmos-coff-objdump --section-headers $(LIBNAME)
  20.  
  21. libr0000.$(LIBNAME).grc: $(LIBNAME)
  22.     $(OBJRES) $(LIBNAME)
  23.     rm -f {code,pref,data}0000.$(LIBNAME).grc
  24.     mv code0001.$(LIBNAME).grc libr0000.$(LIBNAME).grc
  25.  
  26. $(LIBNAME): $(OBJECTS)
  27.     $(CC) -shared -o $(LIBNAME) $(OBJECTS) $(XTRALIBS)
  28.  
  29. $(LIBNAME).o: $(LIBNAME).c
  30.     $(CC) -O5 -c $(LIBNAME).c
  31.  
  32. clean:
  33.     rm -f *.grc *.o $(LIBNAME) *~
  34.  
  35.