2
0

makefile.post 371 B

12345678910111213141516171819
  1. ifneq ($(MAKECMDGOALS), clean)
  2. ifndef CONFIG_PLATFORM_WIN32
  3. ifndef CONFIG_PLATFORM_SOLARIS
  4. # do dependencies
  5. -include .depend
  6. all : .depend
  7. .depend: $(wildcard *.c)
  8. @$(CC) $(CFLAGS) -MM $^ > $@
  9. endif # 'not' solaris
  10. endif # 'not' win32
  11. ifdef CONFIG_PLATFORM_WIN32
  12. OBJ:=$(OBJ:.o=.obj)
  13. %.obj : %.c
  14. $(CC) $(CFLAGS) $<
  15. endif # win32
  16. endif # end of 'not' clean