mirror of
https://github.com/OpenSolo/OpenSolo.git
synced 2025-04-29 22:24:32 +02:00
41 lines
667 B
Makefile
41 lines
667 B
Makefile
# To cross compile:
|
|
#
|
|
# Set up as usual for bitbake:
|
|
# $ . setup-environment build
|
|
#
|
|
# In the build directory:
|
|
# $ bitbake meta-ide-support
|
|
# $ . tmp/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi
|
|
#
|
|
# Now a make in this directory should work.
|
|
|
|
VPATH = ../util
|
|
|
|
INCS = -I../util
|
|
|
|
CFLAGS += -Wall $(INCS)
|
|
|
|
SRCS_C = main.c hostapd_ctrl.c util.c
|
|
|
|
OBJS = $(SRCS_C:.c=.o)
|
|
|
|
MAIN = hostapd_ctrl
|
|
|
|
all: $(MAIN)
|
|
|
|
$(MAIN): $(OBJS)
|
|
$(LINK.c) -o $(MAIN) $(OBJS) $(LIBS)
|
|
|
|
clean:
|
|
$(RM) *.o *~ $(MAIN)
|
|
|
|
BASE := ../..
|
|
|
|
fmt:
|
|
@python $(BASE)/tools/build/clang-format-run.py --apply
|
|
|
|
fmt-diff:
|
|
@python $(BASE)/tools/build/clang-format-run.py
|
|
|
|
.PHONY: all clean fmt fmt-diff
|