1 # File : uapevent/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
33 build default: $(TARGET)
34 @cp -f $(TARGET) $(INSTALLPATH)
38 $(TARGET): $(OBJECTS) $(HEADERS)
39 $(ECHO)$(CC) $(LIBS) -o $@ $(OBJECTS)
42 $(ECHO)$(CC) $(CFLAGS) -c -o $@ $<
48 $(ECHO)$(RM) $(OBJECTS) $(TARGET)