summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd.icc/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/mbbsd.icc/Makefile b/mbbsd.icc/Makefile
index ceacb632..20c7a115 100644
--- a/mbbsd.icc/Makefile
+++ b/mbbsd.icc/Makefile
@@ -34,7 +34,7 @@ CFLAGS+= -DNO_FORK
GCCUSE=gcc -pipe -Wall $(CFLAGS) -c
.SUFFIXES: .c .o
-.c.o:
+.c.o: ../include/var.h
iccbin -D__FreeBSD__ -D__FreeBSD $(CFLAGS) -c ../mbbsd/$*.c
all: $(PROG)
@@ -42,6 +42,9 @@ all: $(PROG)
$(PROG): $(OBJS)
cc $(LDFLAGS) -o $(PROG) $(OBJS)
+../include/var.h: var.c
+ perl ../util/parsevar.pl < var.c > ../include/var.h
+
install: $(PROG)
install -d $(BBSHOME)/bin/
install -c -m 755 $(PROG) $(BBSHOME)/bin/