| Line | |
|---|
| 1 | |
|---|
| 2 | include $(TOP)/.config |
|---|
| 3 | |
|---|
| 4 | ifneq ($(wildcard $(SRCBASE)/cy_conf.mak),) |
|---|
| 5 | include $(SRCBASE)/cy_conf.mak |
|---|
| 6 | endif |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | CFLAGS = -I../rc -I$(TOP)/shared -I$(SRCBASE)/include -Wall -I$(SRCBASE)/ |
|---|
| 10 | CFLAGS += -I$(TOP)/iptables/include -I$(TOP)/iptables/include/libipq -I$(TOP)/libnet/include -DL_ENDIAN -DLIBNET_LIL_ENDIAN -DLIB1X_LIL_ENDIAN |
|---|
| 11 | CFLAGS += -s -Os |
|---|
| 12 | LDFLAGS += -L$(TOP)/nvram -L$(INSTALLDIR)/nvram/usr/lib -lnvram -L$(TOP)/utils -L$(INSTALLDIR)/shared/usr/lib -lutils -L$(SRCBASE)/router/libnet/lib -lnet -L$(TOP)/matrixssl/src -lmatrixssl -lcrypt |
|---|
| 13 | |
|---|
| 14 | OBJS := ../rc/wland.o |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | vpath %.c $(TOP)/shared $(SRCBASE)/rts/src |
|---|
| 19 | |
|---|
| 20 | all: wland |
|---|
| 21 | |
|---|
| 22 | clean: |
|---|
| 23 | rm -f *.o wland |
|---|
| 24 | |
|---|
| 25 | install: all |
|---|
| 26 | install -d $(INSTALLDIR)/sbin |
|---|
| 27 | install wland $(INSTALLDIR)/sbin |
|---|
| 28 | $(STRIP) $(INSTALLDIR)/sbin/wland |
|---|
| 29 | |
|---|
| 30 | wland: $(OBJS) |
|---|
| 31 | $(CC) -o $@ $^ $(LDFLAGS) |
|---|
| 32 | |
|---|
| 33 | $(OBJS): $(CY_DEPS) |
|---|
Note: See
TracBrowser
for help on using the repository browser.