mirror of
https://github.com/codeplea/genann
synced 2024-11-21 22:11:34 +03:00
Makefile: Use standard make variables and recipes
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
This commit is contained in:
parent
8b35090f06
commit
e4e40304e0
13
Makefile
13
Makefile
@ -1,29 +1,22 @@
|
|||||||
CCFLAGS = -Wall -Wshadow -O2 -g
|
CCFLAGS = -Wall -Wshadow -O2 -g
|
||||||
LFLAGS = -lm
|
LDLIBS = -lm
|
||||||
|
|
||||||
|
|
||||||
all: test example1 example2 example3 example4
|
all: test example1 example2 example3 example4
|
||||||
|
|
||||||
|
|
||||||
test: test.o genann.o
|
test: test.o genann.o
|
||||||
$(CC) $(CCFLAGS) -o $@ $^ $(LFLAGS)
|
|
||||||
./$@
|
|
||||||
|
|
||||||
|
check: test
|
||||||
|
./$^
|
||||||
|
|
||||||
example1: example1.o genann.o
|
example1: example1.o genann.o
|
||||||
$(CC) $(CCFLAGS) -o $@ $^ $(LFLAGS)
|
|
||||||
|
|
||||||
example2: example2.o genann.o
|
example2: example2.o genann.o
|
||||||
$(CC) $(CCFLAGS) -o $@ $^ $(LFLAGS)
|
|
||||||
|
|
||||||
example3: example3.o genann.o
|
example3: example3.o genann.o
|
||||||
$(CC) $(CCFLAGS) -o $@ $^ $(LFLAGS)
|
|
||||||
|
|
||||||
example4: example4.o genann.o
|
example4: example4.o genann.o
|
||||||
$(CC) $(CCFLAGS) -o $@ $^ $(LFLAGS)
|
|
||||||
|
|
||||||
.c.o:
|
|
||||||
$(CC) -c $(CCFLAGS) $< -o $@
|
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
Loading…
Reference in New Issue
Block a user