home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: SysTools / SysTools.zip / ft-beta.zip / freetype / lib / arch / os2 / Makefile.emx < prev    next >
Makefile  |  1997-10-06  |  999b  |  48 lines

  1. # This file is part of the FreeType project.
  2. #
  3. # It builds the library and test programs for emx-gcc under OS/2.
  4. #
  5. # You will need GNU make.
  6. #
  7. # Use this file while in the lib directory with the following statement:
  8. #
  9. #   make -f arch/os2/Makefile.emx
  10.  
  11. CC = gcc
  12.  
  13. CFLAGS = -Wall -O2 -g -ansi -pedantic -Iarch/os2 -I. -Iextend
  14. #CFLAGS = -Wall -ansi -pedantic -O2 -s -Iarch/os2 -I. -Iextend
  15.  
  16. SRC = ttapi.c    ttcache.c ttcalc.c  ttcmap.c   ttdebug.c tterror.c \
  17.       ttfile.c   ttfile2.c ttgload.c ttinterp.c ttlists.c ttload.c \
  18.       ttmemory.c ttmutex.c ttobjs.c  ttraster.c \
  19.       \
  20.       extend/ttextend.c extend/ttgasp.c extend/ttkern.c
  21.  
  22. OBJ = $(SRC:.c=.o)
  23.  
  24.  
  25. all: libttf.a
  26.  
  27. libttf.a: $(OBJ)
  28.     -del $@
  29.     ar src $@ $^
  30.  
  31. clean:
  32.     -del *.o
  33.     -del extend\ttextend.o
  34.     -del extend\ttkern.o
  35.  
  36. distclean: clean
  37.     -del dep.end
  38.     -del libttf.a
  39.  
  40. depend:
  41.     $(CC) -E -M $(SRC) > dep.end
  42.  
  43. ifeq (dep.end,$(wildcard dep.end))
  44.   include dep.end
  45. endif
  46.  
  47. # end of Makefile.emx
  48.