source: trunk/user/tcp_server/Makefile @ 681

Last change on this file since 681 was 660, checked in by alain, 4 years ago

introducing three applications:

  • kleenex
  • tcp_client
  • tcp_server
File size: 988 bytes
Line 
1############################################################################
2# Makefile for the "tcp_server" application                                #
3############################################################################
4
5-include ../../params-soft.mk
6
7ifeq ($(ARCH_NAME),)
8$(error Please define in ARCH_NAME parameter in params-soft.mk!)
9endif
10
11OBJS = build/tcp_server.o
12
13INCLUDES = -I.                      \
14           -I$(LIBC_INCLUDE)        \
15           -I$(LIBPTHREAD_INCLUDE)  \
16           -I$(LIBALMOSMKH_INCLUDE) \
17           -I$(SHARED_INCLUDE)
18
19compile: dirs build/tcp_server.elf
20
21build/tcp_server.elf : $(OBJS) tcp_server.ld
22        $(LD) -o $@ -T tcp_server.ld $(OBJS) -L$(LIBC) -L$(LIBALMOSMKH) -L$(LIBPTHREAD) -lc -lpthread -lalmosmkh -lpthread -lc
23        $(DU) -D $@ > $@.txt
24
25build/tcp_server.o : tcp_server.c
26        $(CC) $(INCLUDES) $(CFLAGS) -c -o  $@ $<
27        $(DU) -D $@ > $@.txt
28
29dirs:
30        @mkdir -p build/
31
32clean:
33        rm -rf build/*.o  build/*.elf  build/*.txt
34
35.PHONY: dirs clean
36
37
Note: See TracBrowser for help on using the repository browser.