mirror of
https://github.com/sheumann/hush.git
synced 2024-10-01 02:57:16 +00:00
Update the makefile for building on modern *nix systems. Rename to "Makefile" so we can build with just "make."
Also remove an unused variable that clang was warning about.
This commit is contained in:
parent
12d172a1d9
commit
e96ed4b46a
@ -60,9 +60,8 @@ INCLUDES = -I include -I shell -I libbb
|
|||||||
DEFINES = -Dhush_main=main -DNDEBUG
|
DEFINES = -Dhush_main=main -DNDEBUG
|
||||||
LIBS = -ltermcap
|
LIBS = -ltermcap
|
||||||
|
|
||||||
OCC_FLAGS = -i -w -a0
|
# CFLAGS suitable for clang or GCC
|
||||||
# Add $(OCC_FLAGS) to CFLAGS on dmake
|
CFLAGS = -std=c89 -funsigned-char -Wall -Wno-comment -Wno-format-security
|
||||||
CFLAGS = $(null, $(OCC_FLAGS))
|
|
||||||
|
|
||||||
PROG = hush
|
PROG = hush
|
||||||
|
|
@ -1,4 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# Make with appropriate flags for gcc or clang on modern *nix systems
|
|
||||||
make -f Makefile.gmake CFLAGS="-std=c89 -funsigned-char -Wall -Wno-format-security -Wno-comment"
|
|
@ -19,8 +19,6 @@ jmp_buf die_jmp;
|
|||||||
|
|
||||||
void FAST_FUNC xfunc_die(void)
|
void FAST_FUNC xfunc_die(void)
|
||||||
{
|
{
|
||||||
int forked;
|
|
||||||
|
|
||||||
if (die_sleep) {
|
if (die_sleep) {
|
||||||
if ((ENABLE_FEATURE_PREFER_APPLETS || ENABLE_HUSH)
|
if ((ENABLE_FEATURE_PREFER_APPLETS || ENABLE_HUSH)
|
||||||
&& die_sleep < 0
|
&& die_sleep < 0
|
||||||
|
Loading…
Reference in New Issue
Block a user