lchat

A line oriented chat front end for ii.
git clone git://git.suckless.org/lchat
Log | Files | Refs | README

Makefile (792B)


      1 include config.mk
      2 
      3 .PHONY: all install filter clean test
      4 
      5 all: lchat
      6 clean:
      7 	rm -f lchat *.o *.core sl_test filter/indent
      8 
      9 install: lchat
     10 	cp lchat ${BINDIR}
     11 	cp lchat.1 ${MAN1DIR}
     12 
     13 test: sl_test
     14 	./sl_test
     15 
     16 lchat: lchat.o slackline.o
     17 	$(CC) -o $@ lchat.o slackline.o $(LIBS)
     18 
     19 lchat.o: lchat.c
     20 	$(CC) -c $(CFLAGS) -D_BSD_SOURCE -D_XOPEN_SOURCE -D_GNU_SOURCE \
     21 	    -o $@ lchat.c
     22 
     23 filter: filter/indent
     24 filter/indent: filter/indent.c util.o util.h
     25 	$(CC) $(CFLAGS) -o $@ filter/indent.c util.o
     26 
     27 sl_test.o: sl_test.c slackline.h
     28 	$(CC) $(CFLAGS) -c -o $@ sl_test.c
     29 
     30 sl_test: sl_test.o slackline.o slackline.h
     31 	$(CC) $(CFLAGS) -o $@ sl_test.o slackline.o $(LIBS)
     32 
     33 slackline.o: slackline.c slackline.h
     34 	$(CC) -c $(CFLAGS) -o $@ slackline.c
     35 
     36 util.o: util.c util.h
     37 	$(CC) -c $(CFLAGS) -o $@ util.c