aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano.tronto@gmail.com>2021-12-03 11:19:08 +0100
committerSebastiano Tronto <sebastiano.tronto@gmail.com>2021-12-03 11:19:08 +0100
commita39efe5206ba5d4fd2d21694835dd26d949caadb (patch)
tree7830378d1f0cfe828cba93b77c6bd59ce6d64a18
parent9352746b95920fc75dfd8c01ecac048e79b7ae02 (diff)
downloadnissy-a39efe5206ba5d4fd2d21694835dd26d949caadb.tar.gz
nissy-a39efe5206ba5d4fd2d21694835dd26d949caadb.zip
Fix issues #1 and #2 (thanks to Thomas Rokicki)
-rw-r--r--Makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 71e2297..c495e6c 100644
--- a/Makefile
+++ b/Makefile
@@ -6,9 +6,9 @@ PREFIX = /usr/local
6MANPREFIX = ${PREFIX}/share/man 6MANPREFIX = ${PREFIX}/share/man
7 7
8CPPFLAGS = -DVERSION=\"${VERSION}\" 8CPPFLAGS = -DVERSION=\"${VERSION}\"
9CFLAGS = -std=c99 -static -pthread -pedantic -Wall -Wextra \ 9CFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \
10 -Wno-unused-parameter -O3 ${CPPFLAGS} 10 -Wno-unused-parameter -O3 ${CPPFLAGS}
11DBGFLAGS = -std=c99 -static -pthread -pedantic -Wall -Wextra \ 11DBGFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \
12 -Wno-unused-parameter -g ${CPPFLAGS} 12 -Wno-unused-parameter -g ${CPPFLAGS}
13 13
14CC = cc 14CC = cc
@@ -22,16 +22,16 @@ options:
22 @echo "CC = ${CC}" 22 @echo "CC = ${CC}"
23 23
24nissy: 24nissy:
25 ${CC} ${CFLAGS} -o nissy.o src/*.c 25 ${CC} ${CFLAGS} -o nissy src/*.c
26 26
27win: 27win:
28 x86_64-w64-mingw32-gcc ${CFLAGS} -o nissy.exe src/*.c 28 x86_64-w64-mingw32-gcc ${CFLAGS} -static -o nissy.exe src/*.c
29 29
30debug: 30debug:
31 ${CC} ${DBGFLAGS} -o nissy.o src/*.c 31 ${CC} ${DBGFLAGS} -o nissy src/*.c
32 32
33clean: 33clean:
34 rm -rf nissy.o nissy-${VERSION}.tar.gz 34 rm -rf nissy nissy-${VERSION}.tar.gz
35 35
36dist: clean 36dist: clean
37 mkdir -p nissy-${VERSION} 37 mkdir -p nissy-${VERSION}
@@ -42,9 +42,9 @@ dist: clean
42 gzip nissy-${VERSION}.tar 42 gzip nissy-${VERSION}.tar
43 rm -rf nissy-${VERSION} 43 rm -rf nissy-${VERSION}
44 44
45install: nissy.o 45install: nissy
46 mkdir -p ${DESTDIR}${PREFIX}/bin 46 mkdir -p ${DESTDIR}${PREFIX}/bin
47 cp -f nissy.o ${DESTDIR}${PREFIX}/bin/nissy 47 cp -f nissy ${DESTDIR}${PREFIX}/bin/nissy
48 chmod 755 ${DESTDIR}${PREFIX}/bin/nissy 48 chmod 755 ${DESTDIR}${PREFIX}/bin/nissy
49 mkdir -p ${DESTDIR}${MANPREFIX}/man1 49 mkdir -p ${DESTDIR}${MANPREFIX}/man1
50 sed "s/VERSION/${VERSION}/g" < doc/nissy.1 \ 50 sed "s/VERSION/${VERSION}/g" < doc/nissy.1 \

Generated with cgit - Back to sebastiano.tronto.net