mirror of
https://github.com/danog/gllvm.git
synced 2024-11-30 06:59:05 +01:00
22 lines
229 B
Makefile
22 lines
229 B
Makefile
|
|
|
|
all: main
|
|
|
|
main: main.o
|
|
${CC} -flto a.o main.o -o main
|
|
|
|
main.o: main.c a.o
|
|
${CC} -c main.c -o main.o
|
|
|
|
a.o: a.c a.h
|
|
${CC} -flto -c a.c -o a.o
|
|
|
|
plain: main.c a.c a.h
|
|
${CC} main.c a.c -o plain
|
|
|
|
|
|
clean:
|
|
rm -f *.o main plain
|
|
|
|
|