• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1CC = $(CROSS_COMPILE)gcc
2CFLAGS = -O2 -Wall
3CFLAGS += -DCONFIG_LIBNL20 -I$(NFSROOT)/usr/include -I$(NFSROOT)/include
4
5LDFLAGS += -L$(NFSROOT)/lib
6LIBS += -lnl -lnl-genl -lm
7
8OBJS = nvs.o misc_cmds.o calibrator.o plt.o ini.o
9
10%.o: %.c calibrator.h nl80211.h plt.h nvs_dual_band.h
11    $(CC) $(CFLAGS) -c -o $@ $<
12
13all: $(OBJS)
14    $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o calibrator
15
16uim:
17    $(CC) $(CFLAGS) $(LDFLAGS) uim_rfkill/$@.c -o $@
18
19static: $(OBJS)
20    $(CC) $(LDFLAGS) --static $(OBJS) $(LIBS) -o calibrator
21
22install:
23    @echo Copy files to $(NFSROOT)/home/root
24    @cp -f ./calibrator $(NFSROOT)/home/root
25    @cp -f ./scripts/go.sh $(NFSROOT)/home/root
26
27clean:
28    @rm -f *.o calibrator uim
29