Edit

kmx.io/null_shell/Makefile

Branch :

  • Makefile
  • # Copyright 2024 kmx.io <contact@kmx.io>
    #
    # Permission is hereby granted to use this software granted the above
    # copyright notice and this permission paragraph are included in all
    # copies and substantial portions of this software.
    #
    # THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
    # PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
    # AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
    # THIS SOFTWARE.
    
    PROG = null_shell
    SRC = null_shell.c
    
    CFLAGS = -W -Wall -Werror -std=c89 -pedantic -O2 -pipe
    LDFLAGS = -static
    
    ${PROG}: ${SRC}
    	${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} ${SRC} -o ${PROG}
    
    clean:
    	rm -f ${PROG}
    
    install:
    	install -m 0755 ${PROG} /bin/${PROG}
    
    .PHONY: clean install