39 lines
963 B
Makefile
39 lines
963 B
Makefile
.POSIX:
|
|
.SUFFIXES:
|
|
|
|
CC = cc
|
|
CFLAGS = -w -O2 $(DEFINES)
|
|
LDFLAGS =
|
|
LDLIBS = -lterminfo
|
|
PREFIX = /usr/local/
|
|
DESTDIR =
|
|
DEFINES = -DHELP_DIR='"/dev/null"' -DSHELL='"/bin/sh"'
|
|
OBJECTS = changetty.o docmd1.o docmd2.o edit.o main.o misc.o pat.o scratch.o screen.o term.o
|
|
|
|
all: se scriptse
|
|
se: $(OBJECTS)
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o se $(OBJECTS) $(LDLIBS)
|
|
scriptse: scriptse.o
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o scriptse scriptse.o $(LDLIBS)
|
|
clean:
|
|
rm -f se scriptse *.o
|
|
install:
|
|
install -Dm755 se $(DESTDIR)$(PREFIX)/bin/se
|
|
install -Dm755 scriptse $(DESTDIR)$(PREFIX)/bin/scriptse
|
|
|
|
changetty.o: changetty.c changetty.h
|
|
docmd1.o: docmd1.c docmd1.h
|
|
docmd2.o: docmd2.c docmd2.h
|
|
edit.o: edit.c edit.h
|
|
main.o: main.c main.h
|
|
misc.o: misc.c misc.h
|
|
pat.o: pat.c pat.h
|
|
scratch.o: scratch.c scratch.h
|
|
screen.o: screen.c screen.h
|
|
scriptse.o: scriptse.c
|
|
term.o: term.c term.h
|
|
|
|
.SUFFIXES: .c .o
|
|
.c.o:
|
|
$(CC) $(CFLAGS) $(DEFINES) -c $<
|