summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/iwinfo/src/Makefile
blob: 1d4319fb001920337ed063884fe39eec251e7487 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
IWINFO_LDFLAGS    = $(LDFLAGS) -shared -llua $(if $(CRAP),,-lnl-tiny)
IWINFO_CFLAGS     = $(CFLAGS) -std=gnu99 -fstrict-aliasing $(if $(CRAP),-DUSE_WL,-DUSE_MADWIFI -DUSE_NL80211)
IWINFO_SO         = iwinfo.so
IWINFO_OBJ        = $(if $(CRAP),iwinfo_wl.o,iwinfo_madwifi.o iwinfo_nl80211.o) \
	iwinfo_wext.o iwinfo_wext_scan.o iwinfo_lualib.o

%.o: %.c
	$(CC) $(IWINFO_CFLAGS) $(LUA_CFLAGS) $(FPIC) -c -o $@ $< 

compile: clean $(IWINFO_OBJ)
	$(LD) $(IWINFO_LDFLAGS) -o $(IWINFO_SO) $(IWINFO_OBJ)

clean:
	rm -f *.o $(IWINFO_SO)