sdiagram

Simple diagram tool — suckless-style node graph editor
git clone git clone https://git.krisyotam.com/krisyotam/sdiagram.git
Log | Files | Refs | LICENSE

Makefile (712B)


      1 # sdiagram - simple diagram tool
      2 # See LICENSE file for copyright and license details.
      3 
      4 include config.mk
      5 
      6 SRC = sdiagram.c canvas.c data.c
      7 OBJ = ${SRC:.c=.o}
      8 
      9 all: options sdiagram
     10 
     11 options:
     12 	@echo sdiagram build options:
     13 	@echo "CFLAGS  = ${CFLAGS}"
     14 	@echo "LDFLAGS = ${LDFLAGS}"
     15 	@echo "CC      = ${CC}"
     16 
     17 config.h:
     18 	cp config.def.h config.h
     19 
     20 .c.o:
     21 	${CC} -c ${CFLAGS} $<
     22 
     23 ${OBJ}: config.h sdiagram.h
     24 
     25 sdiagram: ${OBJ}
     26 	${CC} -o $@ ${OBJ} ${LDFLAGS}
     27 
     28 clean:
     29 	rm -f sdiagram ${OBJ}
     30 
     31 install: all
     32 	mkdir -p ${DESTDIR}${PREFIX}/bin
     33 	cp -f sdiagram ${DESTDIR}${PREFIX}/bin
     34 	chmod 755 ${DESTDIR}${PREFIX}/bin/sdiagram
     35 
     36 uninstall:
     37 	rm -f ${DESTDIR}${PREFIX}/bin/sdiagram
     38 
     39 .PHONY: all options clean install uninstall