mirror of
https://github.com/hnhx/fx.git
synced 2025-01-24 17:57:49 -03:00
Add files via upload
This commit is contained in:
parent
6693691a4b
commit
28139f2201
1 changed files with 23 additions and 3 deletions
26
Makefile
26
Makefile
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue