Bump template and commits
This commit is contained in:
parent
82c72ef52b
commit
dd489bdf74
|
@ -1 +1 @@
|
||||||
Subproject commit 4ff817029be3e6c972c702c691cb5cd9ad7f684d
|
Subproject commit dd649c2ffc26cbc58c207a41b617083c42001ebf
|
|
@ -1 +1 @@
|
||||||
Subproject commit b0fe2f65f2aeaa10959837663ffc967bd9950c14
|
Subproject commit 3e3495e0cba145c9225f6c66aeb95d474297978f
|
|
@ -1,18 +1,15 @@
|
||||||
include config.mk
|
include config.mk
|
||||||
|
include sources.mk
|
||||||
|
|
||||||
ifeq (${CC},clang)
|
ifeq (${CC},clang)
|
||||||
|
CFLAGS =\
|
||||||
CFLAGS :=\
|
|
||||||
-std=c99\
|
-std=c99\
|
||||||
-Weverything\
|
-Weverything\
|
||||||
-Wno-padded\
|
-Wno-padded\
|
||||||
-Wno-disabled-macro-expansion\
|
-Wno-disabled-macro-expansion\
|
||||||
-pedantic\
|
-pedantic
|
||||||
${CFLAGS}
|
|
||||||
|
|
||||||
else ifeq (${CC},gcc)
|
else ifeq (${CC},gcc)
|
||||||
|
CFLAGS =\
|
||||||
CFLAGS :=\
|
|
||||||
-std=c99\
|
-std=c99\
|
||||||
-Wall\
|
-Wall\
|
||||||
-Wextra\
|
-Wextra\
|
||||||
|
@ -29,13 +26,15 @@ CFLAGS :=\
|
||||||
-Wshadow\
|
-Wshadow\
|
||||||
-Wunsafe-loop-optimizations\
|
-Wunsafe-loop-optimizations\
|
||||||
-Wparentheses\
|
-Wparentheses\
|
||||||
-pedantic\
|
-pedantic
|
||||||
${CFLAGS}
|
endif
|
||||||
|
|
||||||
|
ifeq (${DEBUG},1)
|
||||||
|
CFLAGS += -g
|
||||||
|
else
|
||||||
|
CFLAGS += -O2
|
||||||
endif
|
endif
|
||||||
|
|
||||||
SRC = template.c
|
|
||||||
HDR = template.h
|
|
||||||
OBJ = ${SRC:.c=.o}
|
OBJ = ${SRC:.c=.o}
|
||||||
|
|
||||||
all: ${OBJ}
|
all: ${OBJ}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
VERSION = 0.0
|
VERSION = 0.0
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
CC = clang
|
CC = clang
|
||||||
|
DEBUG = 1
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
SRC = template.c
|
||||||
|
HDR = template.h
|
Reference in New Issue