A mirror of phillbush's xmenu.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

30 lines
431 B

  1. include config.mk
  2. SRCS = ${PROG}.c
  3. OBJS = ${SRCS:.c=.o}
  4. all: ${PROG}
  5. ${PROG}: ${OBJS}
  6. ${CC} -o $@ ${OBJS} ${LDFLAGS}
  7. ${OBJS}: config.h
  8. config.h: config.def.h
  9. cp config.def.h $@
  10. .c.o:
  11. ${CC} ${CFLAGS} -c $<
  12. clean:
  13. -rm ${OBJS} ${PROG}
  14. install: all
  15. install -d ${DESTDIR}${PREFIX}/bin/
  16. install -m 755 ${PROG} ${DESTDIR}${PREFIX}/bin/
  17. uninstall:
  18. rm -f ${DESTDIR}${PREFIX}/bin/${PROG}
  19. .PHONY: all clean install uninstall