Add files via upload

This commit is contained in:
basedbongo 2022-12-03 00:52:10 +02:00 committed by GitHub
parent 6693691a4b
commit 28139f2201
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,10 +1,30 @@
INSTALL_DIR ?= /usr/local/bin
CC = cc
VERSION = 0.1
all:
cc *.c -o fx -Wall
${CC} *.c -o fx -Wall
options:
@echo fx build options:
@echo "CC = ${CC}"
@echo "INSTALL_DIR = ${INSTALL_DIR}"
version:
@echo ${VERSION}
install:
cc *.c -o $(INSTALL_DIR)/fx -Wall
${CC} *.c -o $(INSTALL_DIR)/fx -Wall
dist:
mkdir -p fx-${VERSION}
cp -R LICENSE Makefile README.md config.h fx.c utils.c utils.h fx-${VERSION}
tar -cf fx-${VERSION}.tar fx-${VERSION}
gzip fx-${VERSION}.tar
rm -rf fx-${VERSION}
clean:
rm -f fx
uninstall:
rm $(INSTALL_DIR)/fx
${CC} $(INSTALL_DIR)/fx