Merge pull request #718 from xexyl/makefile-space-eol

This commit is contained in:
Landon Curt Noll authored and GitHub committed 2023-05-11 21:33:55 +10:00
commit 8ab79bfaa3
9 files changed
+81 -81

No files matched your search

+2 -2
View File
@@ -115,8 +115,8 @@ OBJ= ${PROG}.o
DATA= DATA=
TARGET= ${PROG} TARGET= ${PROG}
# #
ALT_OBJ= ALT_OBJ=
ALT_TARGET= ALT_TARGET=
################# #################
+2 -2
View File
@@ -118,8 +118,8 @@ OBJ= ${PROG}.o
DATA= DATA=
TARGET= ${PROG} TARGET= ${PROG}
# #
ALT_OBJ= ALT_OBJ=
ALT_TARGET= ALT_TARGET=
################# #################
+2 -2
View File
@@ -111,8 +111,8 @@ OBJ= ${PROG}.o
DATA= DATA=
TARGET= ${PROG} TARGET= ${PROG}
# #
ALT_OBJ= ALT_OBJ=
ALT_TARGET= ALT_TARGET=
# FORCE use of -trigraphs # FORCE use of -trigraphs
# #
+2 -2
View File
@@ -114,8 +114,8 @@ OBJ= ${PROG}.o
DATA= DATA=
TARGET= ${PROG} TARGET= ${PROG}
# #
ALT_OBJ= ALT_OBJ=
ALT_TARGET= ALT_TARGET=
################# #################
+1 -1
View File
@@ -116,7 +116,7 @@ ENTRY= anonymous
PROG= ${ENTRY} PROG= ${ENTRY}
# #
OBJ= ${PROG}.o OBJ= ${PROG}.o
DATA= DATA=
TARGET= ${PROG} ${PROG}.ten TARGET= ${PROG} ${PROG}.ten
# #
ALT_OBJ= ALT_OBJ=
+1 -1
View File
@@ -55,7 +55,7 @@ CSTD= -std=gnu99
# Some entries require 32-bitness: ARCH= -m32 # Some entries require 32-bitness: ARCH= -m32
# Some entries require 64-bitness: ARCH= -m64 # Some entries require 64-bitness: ARCH= -m64
# #
ARCH= ARCH=
# Defines that are needed to compile # Defines that are needed to compile
# #
+1 -1
View File
@@ -66,7 +66,7 @@ CINCLUDE=
# Optimization # Optimization
# #
OPT= OPT=
# Default flags for ANSI C compilation # Default flags for ANSI C compilation
# #
+69 -69
View File
@@ -1,69 +1,69 @@
.POSIX : .POSIX :
.SUFFIXES : .SUFFIXES :
A = .a A = .a
O = .o O = .o
.SUFFIXES : .c .h .i $O $A .SUFFIXES : .c .h .i $O $A
######################################################################## ########################################################################
### No further configuration beyond this point. ### No further configuration beyond this point.
######################################################################## ########################################################################
top_srcdir := .. top_srcdir := ..
CC := gcc CC := gcc
CFLAGS := -g -O2 -std=c99 -Wall -pedantic -Wno-char-subscripts CFLAGS := -g -O2 -std=c99 -Wall -pedantic -Wno-char-subscripts
LDFLAGS := LDFLAGS :=
# Assume a POSIX compliant shell. # Assume a POSIX compliant shell.
# #
# On Linux # On Linux
# /bin/sh = /bin/bash # /bin/sh = /bin/bash
# #
# On NetBSD # On NetBSD
# /bin/ksh # /bin/ksh
# /usr/pkg/bin/bash # /usr/pkg/bin/bash
# #
# On OpenBSD # On OpenBSD
# /bin/ksh = /bin/pdksh # /bin/ksh = /bin/pdksh
# #
SHELL := /bin/ksh SHELL := /bin/ksh
W64CC := i686-w64-mingw32-gcc W64CC := i686-w64-mingw32-gcc
W64CFLAGS := -I. -Os -s -std=c99 -Wno-char-subscripts W64CFLAGS := -I. -Os -s -std=c99 -Wno-char-subscripts
ZIP := README.txt prog-w64.exe prog-test.sh avgtime.sh makeholes-w64.exe ZIP := README.txt prog-w64.exe prog-test.sh avgtime.sh makeholes-w64.exe
.c$O : .c$O :
${CC} ${CFLAGS} -c $< ${CC} ${CFLAGS} -c $<
.c$E : .c$E :
$(CC) $(CFLAGS) $(LDFLAGS) -o$* $< $(CC) $(CFLAGS) $(LDFLAGS) -o$* $<
$O : $O :
$(LD) $(LDFLAGS) -o$* $*$O $(LD) $(LDFLAGS) -o$* $*$O
.c.i: .c.i:
${CC} -E ${CFLAGS} $*.c >$*.i ${CC} -E ${CFLAGS} $*.c >$*.i
######################################################################## ########################################################################
all: build all: build
build: prog build: prog
clean: clean:
-rm prog *.exe *.i *$O *.tmp *.rej *.orig *.core *.out 2>/dev/null -rm prog *.exe *.i *$O *.tmp *.rej *.orig *.core *.out 2>/dev/null
distclean: clean distclean: clean
prog: prog.c prog: prog.c
${CC} ${CFLAGS} ${LDFLAGS} -o$@ prog.c ${CC} ${CFLAGS} ${LDFLAGS} -o$@ prog.c
prog-w64: err.h prog.c prog-w64: err.h prog.c
${W64CC} ${W64CFLAGS} ${LDFLAGS} -o$@ prog.c ${W64CC} ${W64CFLAGS} ${LDFLAGS} -o$@ prog.c
test: test:
${SHELL} ${top_srcdir}/prog-test.sh ${SHELL} ${top_srcdir}/prog-test.sh
test-w64: test-w64:
${SHELL} ${top_srcdir}/prog-test.sh -w ${SHELL} ${top_srcdir}/prog-test.sh -w
+1 -1
View File
@@ -68,7 +68,7 @@ CINCLUDE=
# Optimization # Optimization
# #
OPT= OPT=
# Default flags for ANSI C compilation # Default flags for ANSI C compilation
# #