mirror of
https://github.com/codeplea/genann
synced 2024-11-21 22:11:34 +03:00
34 lines
528 B
Makefile
34 lines
528 B
Makefile
CC = gcc
|
|
CCFLAGS = -ansi -Wall -Wshadow -O2 -g
|
|
LFLAGS = -lm
|
|
|
|
|
|
all: test example1 example2 example3 example4
|
|
|
|
|
|
test: test.o genann.o
|
|
$(CC) $(CCFLAGS) -o $@ $^ $(LFLAGS)
|
|
./$@
|
|
|
|
|
|
example1: example1.o genann.o
|
|
$(CC) $(CCFLAGS) -o $@ $^ $(LFLAGS)
|
|
|
|
example2: example2.o genann.o
|
|
$(CC) $(CCFLAGS) -o $@ $^ $(LFLAGS)
|
|
|
|
example3: example3.o genann.o
|
|
$(CC) $(CCFLAGS) -o $@ $^ $(LFLAGS)
|
|
|
|
example4: example4.o genann.o
|
|
$(CC) $(CCFLAGS) -o $@ $^ $(LFLAGS)
|
|
|
|
.c.o:
|
|
$(CC) -c $(CCFLAGS) $< -o $@
|
|
|
|
|
|
clean:
|
|
rm *.o
|
|
rm *.exe
|
|
rm persist.txt
|