20 lines
371 B
Text
20 lines
371 B
Text
|
|
||
|
ifneq ($(MAKECMDGOALS), clean)
|
||
|
ifndef CONFIG_PLATFORM_WIN32
|
||
|
ifndef CONFIG_PLATFORM_SOLARIS
|
||
|
# do dependencies
|
||
|
-include .depend
|
||
|
all : .depend
|
||
|
.depend: $(wildcard *.c)
|
||
|
@$(CC) $(CFLAGS) -MM $^ > $@
|
||
|
endif # 'not' solaris
|
||
|
endif # 'not' win32
|
||
|
|
||
|
ifdef CONFIG_PLATFORM_WIN32
|
||
|
OBJ:=$(OBJ:.o=.obj)
|
||
|
%.obj : %.c
|
||
|
$(CC) $(CFLAGS) $<
|
||
|
endif # win32
|
||
|
|
||
|
endif # end of 'not' clean
|