1 # File : uaputl/Makefile
3 # Copyright (C) 2008, Marvell International Ltd.
6 # Path to the top directory of the wlan distribution
9 # Determine how we should copy things to the install directory
10 ABSPATH := $(filter /%, $(INSTALLDIR))
11 RELPATH := $(filter-out /%, $(INSTALLDIR))
12 INSTALLPATH := $(ABSPATH)
13 ifeq ($(strip $(INSTALLPATH)),)
14 INSTALLPATH := $(PATH_TO_TOP)/$(RELPATH)
17 # Override CFLAGS for application sources, remove __ kernel namespace defines
18 CFLAGS := $(filter-out -D__%, $(EXTRA_CFLAGS))
21 #CFLAGS += -DAP22 -fshort-enums
26 .PHONY: default tags all
28 OBJECTS = uaputl.o uapcmd.o
29 HEADERS = uaputl.h uapcmd.h
33 build default: $(TARGET)
34 @cp -f $(TARGET) $(INSTALLPATH)
35 @cp -rf config/* $(INSTALLPATH)
40 $(TARGET): $(OBJECTS) $(HEADERS)
41 $(ECHO)$(CC) $(LIBS) -o $@ $(OBJECTS)
44 $(ECHO)$(CC) $(CFLAGS) -c -o $@ $<
50 $(ECHO)$(RM) $(OBJECTS) $(TARGET)