Makefile 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. ## The MIT License
  2. ##
  3. ## Copyright (c) 2008 Ulf Wiger <ulf@wiger.net>,
  4. ##
  5. ## Permission is hereby granted, free of charge, to any person obtaining a
  6. ## copy of this software and associated documentation files (the "Software"),
  7. ## to deal in the Software without restriction, including without limitation
  8. ## the rights to use, copy, modify, merge, publish, distribute, sublicense,
  9. ## and/or sell copies of the Software, and to permit persons to whom the
  10. ## Software is furnished to do so, subject to the following conditions:
  11. ##
  12. ## The above copyright notice and this permission notice shall be included in
  13. ## all copies or substantial portions of the Software.
  14. ##
  15. ## THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. ## IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. ## FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  18. ## THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  19. ## LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  20. ## FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  21. ## DEALINGS IN THE SOFTWARE.
  22. .SUFFIXES: .erl .beam
  23. vpath %.beam ../ebin
  24. vpath %.pdf ../doc
  25. ERLC = erlc -W -I ../include -o ../ebin
  26. ERLC += +debug_info
  27. EQC ?= /host/dev/eqc-1.16/ebin
  28. EQC_ERLC = $(ERLC) -I $(EQC)/include
  29. EQC_ERL = erl -pz ../ebin -pz $(EQC)/ebin -pz ./Unit-Quick-Files -kernel error_logger silent
  30. beams = gproc.beam \
  31. gproc_app.beam \
  32. gproc_dist.beam \
  33. gproc_lib.beam \
  34. gproc_sup.beam
  35. all : $(beams)
  36. clean :
  37. rm -f *~ ../ebin/*.beam ./Unit-Quick-Files/*.beam
  38. ## erlc targets
  39. $(beams) : %.beam : %.erl
  40. $(ERLC) $<
  41. ./Unit-Quick-Files/gproc_eqc.beam : ./Unit-Quick-Files/gproc_eqc.erl
  42. $(EQC_ERLC) $<
  43. ## test targets
  44. test : all ./Unit-Quick-Files/gproc_eqc.beam
  45. $(EQC_ERL) -s gproc_eqc run -s erlang halt
  46. itest : all ./Unit-Quick-Files/gproc_eqc.beam
  47. $(EQC_ERL) -s eqc start