spkp

Stacking wayland compositor
git clone git://git.z3bra.org/spkp.git
Log | Files | Refs

mkfile (615B)


      1 <config.mk
      2 
      3 all:V: sp:kp
      4 
      5 sp\:kp: sp:kp.o
      6 	${LD} ${LDFLAGS} $prereq ${WL_LIBS} -o $target
      7 
      8 sp\:kp.o: config.h xdg-shell-protocol.h
      9 %.o: %.c
     10 	${CC} ${CPPFLAGS} ${CFLAGS} ${WL_CFLAGS} -c $stem.c -o $stem.o
     11 
     12 config.h: config.def.h
     13 	cp $prereq $target
     14 
     15 xdg-shell-protocol.h: ${WL_PROTO}/stable/xdg-shell/xdg-shell.xml
     16 	wayland-scanner server-header < $prereq > $target
     17 
     18 clean:V:
     19 	rm -f sp:kp *.o
     20 
     21 install:V: sp:kp
     22 	mkdir -p ${DESTDIR}${PREFIX}/bin
     23 	cp sp:kp ${DESTDIR}${PREFIX}/bin/sp:kp
     24 	chmod 755 ${DESTDIR}${PREFIX}/bin/sp:kp
     25 	chmod ug+s ${DESTDIR}${PREFIX}/bin/sp:kp
     26 
     27 uninstall:V:
     28 	rm ${DESTDIR}${PREFIX}/bin/sp:kp