############################################################################ # Makefile for the "tcp_chat" application # ############################################################################ -include ../../params-soft.mk ifeq ($(ARCH_NAME),) $(error Please define in ARCH_NAME parameter in params-soft.mk!) endif OBJS = build/tcp_chat.o INCLUDES = -I. \ -I$(LIBC_INCLUDE) \ -I$(LIBPTHREAD_INCLUDE) \ -I$(LIBALMOSMKH_INCLUDE) \ -I$(SHARED_INCLUDE) compile: dirs build/tcp_chat.elf build/tcp_chat.elf : $(OBJS) tcp_chat.ld $(LD) -o $@ -T tcp_chat.ld $(OBJS) -L$(LIBC) -L$(LIBALMOSMKH) -L$(LIBPTHREAD) -lc -lpthread -lalmosmkh -lpthread -lc $(DU) -D $@ > $@.txt build/tcp_chat.o : tcp_chat.c $(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $< $(DU) -D $@ > $@.txt dirs: @mkdir -p build/ clean: rm -rf build/*.o build/*.elf build/*.txt .PHONY: dirs clean