Subversion Repositories HelenOS

Rev

Rev 3466 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3466 Rev 3666
Line 30... Line 30...
30
#
30
#
31
 
31
 
32
LIBC_PREFIX = ../../../lib/libc
32
LIBC_PREFIX = ../../../lib/libc
33
SOFTINT_PREFIX = ../../../lib/softint
33
SOFTINT_PREFIX = ../../../lib/softint
34
include $(LIBC_PREFIX)/Makefile.toolchain
34
include $(LIBC_PREFIX)/Makefile.toolchain
-
 
35
include ../../../../Makefile.config
35
 
36
 
36
LIBS = $(LIBC_PREFIX)/libc.a
37
LIBS = $(LIBC_PREFIX)/libc.a
37
 
38
 
38
## Sources
39
## Sources
39
#
40
#
40
 
41
 
41
OUTPUT = networking
42
OUTPUT = networking
42
SOURCES = \
43
SOURCES = \
43
	networking.c \
44
	networking.c \
-
 
45
	../char_map.c \
-
 
46
	../measured_strings.c \
44
	../modules.c
47
	../modules.c
-
 
48
#	../self_test.c
45
 
49
 
46
ifeq ($(NETWORKING), module)
50
ifeq ($(NETWORKING), module)
47
	SOURCES +=	../ip/ip.c \
51
	SOURCES +=	../ip/ip.c \
48
			../tcp/tcp.c
52
			../tcp/tcp.c
49
endif
53
endif
50
 
54
 
-
 
55
DEFS += -D NETWORKING_$(NETWORKING)
-
 
56
 
51
OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
57
OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
52
 
58
 
53
.PHONY: all clean depend disasm
59
.PHONY: all clean depend disasm
54
 
60
 
55
all: $(OUTPUT) $(OUTPUT).disasm
61
all: $(OUTPUT) $(OUTPUT).disasm
Line 75... Line 81...
75
 
81
 
76
%.o: %.s
82
%.o: %.s
77
	$(AS) $(AFLAGS) $< -o $@
83
	$(AS) $(AFLAGS) $< -o $@
78
 
84
 
79
%.o: %.c
85
%.o: %.c
80
	$(CC) $(DEFS) $(CFLAGS) -D NETWORKING_$(NETWORKING) -c $< -o $@
86
	$(CC) $(DEFS) $(CFLAGS) -c $< -o $@