Makefile 1014 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Copyright (c) 2009 Openmoko Inc.
  2. #
  3. # This program is free software: you can redistribute it and/or modify
  4. # it under the terms of the GNU General Public License as published by
  5. # the Free Software Foundation, either version 3 of the License, or
  6. # (at your option) any later version.
  7. #
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. # GNU General Public License for more details.
  12. #
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. RM = rm -f
  16. CC = gcc
  17. LD = ld
  18. CFLAGS = -g -O3 -Wall -Werror -MD -D_REENTRANT
  19. LDFLAGS = -g -dynamic
  20. C_OBJS = pcf.o
  21. vpath %.c
  22. TARGETS = pcf2bmf
  23. OBJS = $(C_OBJS) pcf2bmf.o
  24. all: $(TARGETS)
  25. pcf2bmf: $(OBJS)
  26. $(CC) $(LDFLAGS) $(OBJS) -o $@
  27. .c.o:
  28. $(CC) $(CFLAGS) -c $< -o $@
  29. clean::
  30. $(RM) $(TARGETS) *.o *.d
  31. -include $(wildcard *.d) dummy