CFLAGS	+= -s -O2 -Wall

CFLAGS	+=	$(PATHNVRAM)
CFLAGS	+=	$(PATHUSER)
LDFLAGS	+= 	$(LIBNVRAM)


OBJS	= dslmode.o

all: dslmode

dslmode: $(OBJS)
	$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
	$(STRIP) dslmode

clean:
	rm -rf *.bak dslmode

romfs:
	cp dslmode $(ROMFSDIR)/bin/dslmode
#	$(ROMFSINST)    /usr/sbin/dslmode

install: all
	install -d $(INSTALLDIR)/bin
	install dslmode $(INSTALLDIR)/bin