freewrt_1_0
freewrt_2_0
|
Last change
on this file since 9cf508e was 9cf508e, checked in by Markus Wigge <markus@…>, 19 years ago |
- added runtime config for password
- added runtime config for ssh-key
- added mkpasswd for crypt-md5 generation (needed for runtime password config)
git-svn-id: svn://www.freewrt.org/trunk/freewrt@325 afb5a338-a214-0410-bd46-81f09a774fd1
|
-
Property mode
set to
100644
|
|
File size:
595 bytes
|
| Line | |
|---|
| 1 | include $(TOPDIR)/rules.mk
|
|---|
| 2 |
|
|---|
| 3 | TARGETS := mkpasswd
|
|---|
| 4 |
|
|---|
| 5 | UTILS_BUILD_DIR:=$(TOOLS_BUILD_DIR)/utils
|
|---|
| 6 |
|
|---|
| 7 | prepare: $(UTILS_BUILD_DIR)
|
|---|
| 8 | compile: prepare $(patsubst %,$(UTILS_BUILD_DIR)/%,$(TARGETS))
|
|---|
| 9 | mkdir -p $(STAGING_DIR)/bin
|
|---|
| 10 | $(CP) $(UTILS_BUILD_DIR)/* $(STAGING_DIR)/bin/
|
|---|
| 11 | install: compile
|
|---|
| 12 | package:
|
|---|
| 13 | clean:
|
|---|
| 14 | rm -rf $(UTILS_BUILD_DIR)
|
|---|
| 15 | for f in $(TARGETS); do \
|
|---|
| 16 | rm -f $(STAGING_DIR)/bin/$$f ; \
|
|---|
| 17 | done
|
|---|
| 18 |
|
|---|
| 19 | $(UTILS_BUILD_DIR):
|
|---|
| 20 | mkdir -p $(UTILS_BUILD_DIR)
|
|---|
| 21 |
|
|---|
| 22 | $(UTILS_BUILD_DIR)/%: src/%.c
|
|---|
| 23 | $(HOSTCC) -lcrypt -I $(TOPDIR)/scripts $(HOSTCFLAGS) -o $@ \
|
|---|
| 24 | $(patsubst $(UTILS_BUILD_DIR)/%,src/%.c,$@)
|
|---|
| 25 | chmod 755 $@
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.