2 CFLAGS
:= -g
-c
-Wall
$(XFLAGS
)
7 TWEAK
:= main.o keytab.o actions.o search.o rcfile.o buffer.o btree.o
10 # INCLUDE += -I/path/to/slang/include
11 # LIBS += -L/path/to/slang/lib
22 all: tweak tweak
.1 btree.html
25 $(LINK
) -o tweak
$(TWEAK
) $(LIBS
)
33 # Ensure tweak.h reflects this version number, and then run a
34 # command like `make release VERSION=3.00'.
35 release
: tweak
.1 btree.html
36 mkdir
-p reltmp
/tweak-
$(VERSION
)
37 for i in
*.c
*.h
*.but tweak
.1 btree.html Makefile
; do \
38 ln
-s ..
/..
/$$i reltmp
/tweak-
$(VERSION
); \
40 (cd reltmp
; tar chzvf ..
/tweak-
$(VERSION
).
tar.gz tweak-
$(VERSION
))
44 rm -f
*.o tweak tweak
.1 btree.html
46 main.o
: main.c tweak.h
47 keytab.o
: keytab.c tweak.h
48 actions.o
: actions.c tweak.h
49 search.o
: search.c tweak.h
50 rcfile.o
: rcfile.c tweak.h
51 buffer.o
: buffer.c tweak.h btree.h
52 slang.o
: slang.c tweak.h
53 curses.o
: curses.c tweak.h
54 btree.o
: btree.c btree.h