BNX2X: IRQs implemented
[akaros.git] / tools / syscall_server / Makefile
1 #CC = ivycc --deputy
2 CFLAGS += -I.
3 V = @
4
5 SYSCALL_SERVER_OBJS = newlib_trans.o syscall_server.o
6 SYSCALL_SERVER_HEADS = syscall_server.h newlib_trans.h
7
8 all: syscall_server_udp syscall_server_pty syscall_server_pipe
9         $(V)rm -rf *.o
10
11 .syscall_server_pipe.in: 
12         $(V)mkfifo $@
13         $(V)chmod ug+rw $@
14
15 .syscall_server_pipe.out: 
16         $(V)mkfifo $@
17         $(V)chmod ug+rw $@
18
19 syscall_server_pipes: .syscall_server_pipe.in .syscall_server_pipe.out 
20
21 %.o: %.c $(SYSCALL_SERVER_HEADS)
22         @echo + cc [SYSCALL_SERVER] $<
23         $(V)$(CC) -c $(CFLAGS) -o $@ $<
24
25 SYSCALL_SERVER_PTY_OBJS = $(SYSCALL_SERVER_OBJS) pty.o
26 syscall_server_pty: $(SYSCALL_SERVER_PTY_OBJS)
27         @echo + cc [SYSCALL_SERVER] $@
28         $(V)$(CC) $(CFLAGS) -o $@ $(SYSCALL_SERVER_PTY_OBJS)
29         
30 SYSCALL_SERVER_PIPE_OBJS = $(SYSCALL_SERVER_OBJS) pipe.o
31 syscall_server_pipe: $(SYSCALL_SERVER_PIPE_OBJS) syscall_server_pipes
32         @echo + cc [SYSCALL_SERVER] $@
33         $(V)$(CC) $(CFLAGS) -o $@ $(SYSCALL_SERVER_PIPE_OBJS)
34
35 SYSCALL_SERVER_UDP_OBJS = $(SYSCALL_SERVER_OBJS) udp.o
36 syscall_server_udp: $(SYSCALL_SERVER_UDP_OBJS)
37         @echo + cc [SYSCALL_SERVER] $@
38         $(V)$(CC) $(CFLAGS) -o $@ $(SYSCALL_SERVER_UDP_OBJS)
39
40 clean:
41         rm -rf *.o
42         rm -rf syscall_server_*
43         rm -rf .syscall_server_*
44