mirror of
https://github.com/eledio-devices/thirdparty-tinyexpr.git
synced 2025-10-30 16:15:41 +01:00
33 lines
511 B
Makefile
33 lines
511 B
Makefile
CC = gcc
|
|
CCFLAGS = -ansi -Wall -Wshadow -O2
|
|
LFLAGS = -lm
|
|
|
|
|
|
all: test bench example example2 example3
|
|
|
|
|
|
test: test.o tinyexpr.o
|
|
$(CC) $(CCFLAGS) -o $@ $^ $(LFLAGS)
|
|
./$@
|
|
|
|
|
|
bench: benchmark.o tinyexpr.o
|
|
$(CC) $(CCFLAGS) -o $@ $^ $(LFLAGS)
|
|
|
|
example: example.o tinyexpr.o
|
|
$(CC) $(CCFLAGS) -o $@ $^ $(LFLAGS)
|
|
|
|
example2: example2.o tinyexpr.o
|
|
$(CC) $(CCFLAGS) -o $@ $^ $(LFLAGS)
|
|
|
|
example3: example3.o tinyexpr.o
|
|
$(CC) $(CCFLAGS) -o $@ $^ $(LFLAGS)
|
|
|
|
.c.o:
|
|
$(CC) -c $(CCFLAGS) $< -o $@
|
|
|
|
|
|
clean:
|
|
rm *.o
|
|
rm *.exe
|