4.1155-freebsd-126-freebsd-12freebsd-9.3
Line | |
---|
1 | include ../../config.inc |
---|
2 | |
---|
3 | include $(RTEMS_MAKEFILE_PATH)/Makefile.inc |
---|
4 | include $(RTEMS_CUSTOM) |
---|
5 | include $(PROJECT_ROOT)/make/leaf.cfg |
---|
6 | |
---|
7 | CFLAGS += -I $(INSTALL_BASE)/include |
---|
8 | |
---|
9 | CFLAGS += -w |
---|
10 | CFLAGS += -I include |
---|
11 | CFLAGS += -std=gnu99 |
---|
12 | CFLAGS += -MT $@ -MD -MP -MF $(basename $@).d |
---|
13 | |
---|
14 | C_FILES = |
---|
15 | C_FILES += check_passwd.c |
---|
16 | C_FILES += des.c |
---|
17 | C_FILES += pty.c |
---|
18 | C_FILES += telnetd.c |
---|
19 | # genpw.c is native |
---|
20 | |
---|
21 | C_O_FILES = $(C_FILES:%.c=%.o) |
---|
22 | C_D_FILES = $(C_FILES:%.c=%.d) |
---|
23 | |
---|
24 | LIB = libtelnetd.a |
---|
25 | |
---|
26 | all: $(LIB) |
---|
27 | |
---|
28 | $(LIB): $(C_O_FILES) |
---|
29 | $(AR) rcu $@ $^ |
---|
30 | |
---|
31 | install: $(LIB) |
---|
32 | install -d $(INSTALL_BASE)/include/rtems |
---|
33 | install -c -m 644 include/rtems/pty.h $(INSTALL_BASE)/rtems |
---|
34 | install -c -m 644 include/rtems/telnetd.h $(INSTALL_BASE)/rtems |
---|
35 | install -c -m 644 include/passwd.h $(INSTALL_BASE)/rtems |
---|
36 | install -c -m 644 $(LIB) $(INSTALL_BASE) |
---|
37 | |
---|
38 | clean: |
---|
39 | rm -f $(LIB) $(C_O_FILES) $(C_D_FILES) $(GEN_FILES) |
---|
40 | |
---|
41 | -include $(C_D_FILES) |
---|
42 | |
---|
43 | doc: |
---|
44 | |
---|
Note: See
TracBrowser
for help on using the repository browser.