| 
                Last change
                  on this file was
                  682,
                  checked in by alain, 5 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:
            972 bytes
           | 
      
      
        
  | Line |   | 
|---|
| 1 | ############################################################################ | 
|---|
| 2 | # Makefile for the "tcp_chat" application                                # | 
|---|
| 3 | ############################################################################ | 
|---|
| 4 |  | 
|---|
| 5 | -include ../../params-soft.mk | 
|---|
| 6 |  | 
|---|
| 7 | ifeq ($(ARCH_NAME),) | 
|---|
| 8 | $(error Please define in ARCH_NAME parameter in params-soft.mk!) | 
|---|
| 9 | endif | 
|---|
| 10 |  | 
|---|
| 11 | OBJS = build/tcp_chat.o | 
|---|
| 12 |  | 
|---|
| 13 | INCLUDES = -I.                      \ | 
|---|
| 14 |            -I$(LIBC_INCLUDE)        \ | 
|---|
| 15 |            -I$(LIBPTHREAD_INCLUDE)  \ | 
|---|
| 16 |            -I$(LIBALMOSMKH_INCLUDE) \ | 
|---|
| 17 |            -I$(SHARED_INCLUDE) | 
|---|
| 18 |  | 
|---|
| 19 | compile: dirs build/tcp_chat.elf | 
|---|
| 20 |  | 
|---|
| 21 | build/tcp_chat.elf : $(OBJS) tcp_chat.ld | 
|---|
| 22 |         $(LD) -o $@ -T tcp_chat.ld $(OBJS) -L$(LIBC) -L$(LIBALMOSMKH) -L$(LIBPTHREAD) -lc -lpthread -lalmosmkh -lpthread -lc | 
|---|
| 23 |         $(DU) -D $@ > $@.txt | 
|---|
| 24 |  | 
|---|
| 25 | build/tcp_chat.o : tcp_chat.c | 
|---|
| 26 |         $(CC) $(INCLUDES) $(CFLAGS) -c -o  $@ $< | 
|---|
| 27 |         $(DU) -D $@ > $@.txt | 
|---|
| 28 |  | 
|---|
| 29 | dirs: | 
|---|
| 30 |         @mkdir -p build/ | 
|---|
| 31 |  | 
|---|
| 32 | clean: | 
|---|
| 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.