wm: glendy

ref: 06c5aee6f69201b945e24bf38c3dd0bf94e7568c
dir: /Makefile/

View raw version
CC=cc
CFLAGS +=-Dunix -pthread
NROFF=mandoc

Lib=\
	engine.o\
	unix.o\
	util.o\
	netclient.o\

Cli=	cli.o
Clinet = clinet.o
Srv4=	srv4.o
Srv=	srv.o

all: cli srv4 srv

%.o: %.c %.h
	$(CC) $(CFLAGS) -c $< -o $@

cli: ${Cli} ${Lib}
	$(CC) $(CFLAGS) -o $@ ${Cli} ${Lib}

srv4: ${Srv4} ${Lib}
	$(CC) $(CFLAGS) -o $@ ${Srv4} ${Lib}

srv: ${Srv} ${Lib}
	$(CC) $(CFLAGS) -o $@ ${Srv} ${Lib}
docs:
	$(NROFF) doc/glendy2.man | col -b > doc/glendy2.txt
clean:
	rm -f *.o *.5 *.6 *.7 *.8 cli srv srv4 doc/glendy2.txt