hostap/src/p2p/Makefile
Johannes Berg 722138cd25 build: Put object files into build/ folder
Instead of building in the source tree, put most object
files into the build/ folder at the root, and put each
thing that's being built into a separate folder.

This then allows us to build hostapd and wpa_supplicant
(or other combinations) without "make clean" inbetween.

For the tests keep the objects in place for now (and to
do that, add the build rule) so that we don't have to
rewrite all of that with $(call BUILDOBJS,...) which is
just noise there.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2020-10-10 12:51:39 +03:00

27 lines
372 B
Makefile

ALL=libp2p.a
include ../lib.rules
install:
@echo Nothing to be made.
CFLAGS += -DCONFIG_WIFI_DISPLAY
CFLAGS += -DCONFIG_WPS_NFC
LIB_OBJS= \
p2p_build.o \
p2p.o \
p2p_dev_disc.o \
p2p_go_neg.o \
p2p_group.o \
p2p_invitation.o \
p2p_parse.o \
p2p_pd.o \
p2p_sd.o \
p2p_utils.o
_OBJS_VAR := LIB_OBJS
include ../objs.mk
libp2p.a: $(LIB_OBJS)
$(AR) crT $@ $?