Add snippet 'add' in Makefile (new binary)

It adds the rule for a new binary (from a source file with the same name
as the binary, but with a ".c" extension)
This commit is contained in:
Corentin Peuvrel 2015-04-11 00:16:34 +02:00
parent e5e94eb42c
commit 371110a991

View File

@ -17,6 +17,11 @@ snippet base
mrproper : clean
rm -f $1
# add
snippet add
${1:out} : $1.o
$(CC) $(CFLAGS) -o $@ $+
# ifeq
snippet ifeq
ifeq (${1:cond0},${2:cond1})