diff options
author | Arturo FilastoĢ <hellais@torproject.org> | 2011-08-18 12:11:34 +0200 |
---|---|---|
committer | Arturo FilastoĢ <hellais@torproject.org> | 2011-08-18 12:11:34 +0200 |
commit | dfe11c74fe59ceaa68778d80ce6a8a16227350f9 (patch) | |
tree | 2eb80f6a135ae02d663bf7d76e572a157d7d7a5e /packages/dreamplug-uaputl/Makefile | |
parent | e14cf93e2c93e94c00d55d51ffc8ca26e063377c (diff) | |
parent | 9539219428e74cda06510ab95900ec8f0a14e7e5 (diff) | |
download | torouter-dfe11c74fe59ceaa68778d80ce6a8a16227350f9.tar.gz torouter-dfe11c74fe59ceaa68778d80ce6a8a16227350f9.zip |
Merge branch 'master' of ssh://git-rw.torproject.org/torouter
Diffstat (limited to 'packages/dreamplug-uaputl/Makefile')
-rwxr-xr-x | packages/dreamplug-uaputl/Makefile | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/packages/dreamplug-uaputl/Makefile b/packages/dreamplug-uaputl/Makefile new file mode 100755 index 0000000..4e33274 --- /dev/null +++ b/packages/dreamplug-uaputl/Makefile @@ -0,0 +1,55 @@ +# File : uaputl/Makefile +# +# Copyright (C) 2008, Marvell International Ltd. +# All Rights Reserved + +# Path to the top directory of the wlan distribution +PATH_TO_TOP = ../.. + +# Determine how we should copy things to the install directory +ABSPATH := $(filter /%, $(INSTALLDIR)) +RELPATH := $(filter-out /%, $(INSTALLDIR)) +INSTALLPATH := $(ABSPATH) +ifeq ($(strip $(INSTALLPATH)),) +INSTALLPATH := $(PATH_TO_TOP)/$(RELPATH) +endif + +# Override CFLAGS for application sources, remove __ kernel namespace defines +CFLAGS := $(filter-out -D__%, $(EXTRA_CFLAGS)) + + +#CFLAGS += -DAP22 -fshort-enums +CFLAGS += -Wall +#ECHO = @ +LIBS = -lrt + +.PHONY: default tags all + +OBJECTS = uaputl.o uapcmd.o +HEADERS = uaputl.h uapcmd.h + +TARGET = uaputl + +build default: $(TARGET) + @cp -f $(TARGET) $(INSTALLPATH) + @cp -rf config/* $(INSTALLPATH) + + +all : tags default + +$(TARGET): $(OBJECTS) $(HEADERS) + $(ECHO)$(CC) $(LIBS) -o $@ $(OBJECTS) + +%.o: %.c $(HEADERS) + $(ECHO)$(CC) $(CFLAGS) -c -o $@ $< + +tags: + ctags -R -f tags.txt + +clean: + $(ECHO)$(RM) $(OBJECTS) $(TARGET) + $(ECHO)$(RM) tags.txt + +# We add this install target to allow for installation +install: + install $(TARGET) $(DESTDIR)/usr/bin/$(TARGET) |