aboutsummaryrefslogtreecommitdiffstats
path: root/ptx/Makefile.mk
blob: dda3ba05f725874527a8b9c0627f0f2391eeb305 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
OBJ = ptx.o

FLAGS = -DLIBDIR='"$(LIBDIR)"' $(EUC) -I../include

.c.o:
	$(CC) $(_CFLAGS) $(FLAGS) -c $<

all: ptx

ptx: $(OBJ)
	$(CC) $(_CFLAGS) $(_LDFLAGS) $(OBJ) $(LIBS) -o ptx

install:
	$(INSTALL) -c ptx $(ROOT)$(BINDIR)/ptx
	$(STRIP) $(ROOT)$(BINDIR)/ptx
	$(INSTALL) -c -m 644 ptx.1 $(ROOT)$(MANDIR)/man1/ptx.1
	test -d $(ROOT)$(LIBDIR) || mkdir -p $(ROOT)$(LIBDIR)
	$(INSTALL) -c -m 644 eign $(ROOT)$(LIBDIR)/eign

clean:
	rm -f $(OBJ) ptx core log *~

mrproper: clean