5 LIB_FILENAME
= libnvram.so
7 LIB_CFLAGS
= $(CFLAGS
) -shared
-fPIC
8 LIB_LDFLAGS
= $(LDFLAGS
) -Wl
,-soname
,$(LIB_FILENAME
).
$(LIB_VERMAJOR
).
$(LIB_VERMINOR
)
10 CLI_CFLAGS
= $(CFLAGS
)
11 CLI_LDFLAGS
= $(LDFLAGS
)
14 LIB_OBJ
= crc.o nvram.o
19 $(CC
) $(CLI_CFLAGS
) -c
-o cli.o cli.c
20 $(CC
) -o
$(CLI_FILENAME
) $(CLI_LDFLAGS
) $(CLI_OBJ
) \
21 $(LIB_FILENAME
).
$(LIB_VERMAJOR
).
$(LIB_VERMINOR
)
24 $(CC
) $(CLI_CFLAGS
) -c
-o
$@
$<
27 $(CC
) $(LIB_CFLAGS
) -c
-o crc.o crc.c
28 $(CC
) $(LIB_CFLAGS
) -c
-o nvram.o nvram.c
29 $(CC
) $(LIB_CFLAGS
) $(LIB_LDFLAGS
) \
30 -o
$(LIB_FILENAME
).
$(LIB_VERMAJOR
).
$(LIB_VERMINOR
) $(LIB_OBJ
)
33 rm -f
$(CLI_FILENAME
) $(LIB_FILENAME
)* *.o
This page took 0.075969 seconds and 5 git commands to generate.