Makefile 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #
  2. # Copyright 2008 Department of Mathematical Sciences, New Mexico State University
  3. #
  4. # Permission is hereby granted, free of charge, to any person obtaining a
  5. # copy of this software and associated documentation files (the "Software"),
  6. # to deal in the Software without restriction, including without limitation
  7. # the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. # and/or sell copies of the Software, and to permit persons to whom the
  9. # Software is furnished to do so, subject to the following conditions:
  10. #
  11. # The above copyright notice and this permission notice shall be included in
  12. # all copies or substantial portions of the Software.
  13. #
  14. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  17. # DEPARTMENT OF MATHEMATICAL SCIENCES OR NEW MEXICO STATE UNIVERSITY BE
  18. # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
  19. # CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  20. # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  21. #
  22. RM = rm
  23. CP = cp
  24. MKINSTALLDIRS = ./mkinstalldirs
  25. CC = gcc
  26. CFLAGS = -Wall -pedantic -g -O2
  27. SRCS = remap.c otf2bdf.c
  28. OBJS = remap.o otf2bdf.o
  29. #
  30. # Point these at the FreeType source directories.
  31. #
  32. INCS = -I/usr/include/freetype2
  33. LIBS = -L/usr/lib/i386-linux-gnu -lfreetype -lz -lfreetype
  34. LDFLAGS =
  35. prefix = /usr/local
  36. exec_prefix = ${prefix}
  37. bindir = ${exec_prefix}/bin
  38. mandir = ${prefix}/man
  39. all: otf2bdf
  40. otf2bdf: $(OBJS)
  41. $(CC) $(STATIC) $(LDFLAGS) -o otf2bdf $(OBJS) $(LIBS)
  42. clean:
  43. $(RM) -f *.o *BAK *CKP *~ a.out core
  44. realclean: clean
  45. $(RM) -f otf2bdf
  46. distclean: clean
  47. $(RM) -f otf2bdf config.* Makefile
  48. .c.o:
  49. $(CC) $(CFLAGS) $(INCS) -c $< -o $@
  50. install: otf2bdf
  51. $(MKINSTALLDIRS) $(bindir) $(mandir)/man1
  52. $(CP) otf2bdf $(bindir)/otf2bdf
  53. $(CP) otf2bdf.man $(mandir)/man1/otf2bdf.1
  54. uninstall:
  55. $(RM) -f $(bindir)/otf2bdf
  56. $(RM) -f $(mandir)/man1/otf2bdf.1
  57. # end of Makefile