2016-03-08 21:58:02 +03:00
|
|
|
CCFLAGS = -Wall -Wshadow -O2 -g
|
2016-02-10 02:53:54 +03:00
|
|
|
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:
|
2017-10-22 00:34:36 +03:00
|
|
|
$(RM) *.o
|
|
|
|
$(RM) *.exe
|
|
|
|
$(RM) persist.txt
|