Delete remaining Makefile.orig files
This commit is contained in:
1 parent
01e76d013d
commit
cb0677de02
2 files changed
-55
No files matched your search
@@ -1,22 +0,0 @@
|
|||||||
# the factor of gravity
|
|
||||||
G=1
|
|
||||||
# the factor of pressure
|
|
||||||
P=4
|
|
||||||
# the factor of viscosity
|
|
||||||
V=8
|
|
||||||
RM= rm
|
|
||||||
TRUE= true
|
|
||||||
CWARN= -Wall -W -Wextra -pedantic
|
|
||||||
CSTD= -std=c99 -D_BSD_SOURCE
|
|
||||||
CFLAGS= ${CWARN} ${CSTD} ${ARCH} ${OPT}
|
|
||||||
CC= gcc
|
|
||||||
ENTRY= prog
|
|
||||||
|
|
||||||
all: ${ENTRY}
|
|
||||||
@${TRUE}
|
|
||||||
|
|
||||||
${ENTRY}: ${ENTRY}.c
|
|
||||||
${CC} ${CFLAGS} -DG=$G -DP=$P -DV=$P ${ENTRY}.c -o $@ -lm
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(RM) -f ${ENTRY}
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
|
|
||||||
LINES=24
|
|
||||||
COLUMNS=80
|
|
||||||
CC=gcc
|
|
||||||
|
|
||||||
CSILENCE=-Wno-incompatible-pointer-types -Wno-return-type -Wno-format-security \
|
|
||||||
-Wno-bitwise-op-parentheses -Wno-logical-op-parentheses \
|
|
||||||
-Wno-dangling-else -Wno-implicit-int -Wno-unused-value
|
|
||||||
|
|
||||||
CFLAGS=$(CSILENCE)
|
|
||||||
|
|
||||||
default:
|
|
||||||
$(MAKE) `uname`
|
|
||||||
|
|
||||||
check-os:
|
|
||||||
sh check-os.sh $(LINES) $(COLUMNS)
|
|
||||||
|
|
||||||
FreeBSD:
|
|
||||||
RAW_MODE=392 \
|
|
||||||
IPC_MODE=46 \
|
|
||||||
$(MAKE) binary
|
|
||||||
|
|
||||||
Linux:
|
|
||||||
RAW_MODE=11 \
|
|
||||||
IPC_MODE=0 \
|
|
||||||
$(MAKE) binary
|
|
||||||
|
|
||||||
binary:
|
|
||||||
$(CC) $(CFLAGS) -Dg=$$RAW_MODE \
|
|
||||||
-Ds=$$IPC_MODE \
|
|
||||||
-DV=$(LINES) \
|
|
||||||
-DW=$(COLUMNS) \
|
|
||||||
-o prog prog.c
|
|
||||||
Reference in new issue
Block a user