source: trunk/user/windows/Makefile @ 682

Last change on this file since 682 was 682, checked in by alain, 3 years ago

Introduce three new applications:

  • windows : to test the FBF windows kernel manager
  • udp_chat : chat application based on UDP sockets.
  • tcp_chat : chat application based on TCP sockets (including packet loss recovery).
File size: 974 bytes
Line 
1############################################################################
2# Makefile for "windows" application running on ALMOS-MKH
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/windows.o
12
13INCLUDES = -I.                      \
14           -I$(LIBC_INCLUDE)        \
15           -I$(LIBPTHREAD_INCLUDE)  \
16           -I$(LIBALMOSMKH_INCLUDE) \
17           -I$(SHARED_INCLUDE)      \
18           -I$(HAL_INCLUDE)
19
20compile: dirs build/windows.elf
21
22build/windows.elf : $(OBJS) windows.ld
23        $(LD) -o $@ -T windows.ld $(OBJS) -L$(LIBC) -L$(LIBPTHREAD) -L$(LIBALMOSMKH) \
24          -lc -lpthread -lalmosmkh -lpthread -lc
25        $(DU) -D $@ > $@.txt
26
27build/windows.o : windows.c
28        $(CC) $(INCLUDES) $(CFLAGS) -c -o  $@ $<
29
30dirs:
31        @mkdir -p build/
32
33clean:
34        rm -rf build/*.o  build/*.elf  build/*.txt
35
36.PHONY: dirs clean
37 
Note: See TracBrowser for help on using the repository browser.