Debian Codegraph @

test/module_generator/example_application/Makefile

raw
1 # Copyright (C) CNRS, INRIA, Université Bordeaux 1, Télécom SudParis
2 # See COPYING in top-level directory.
3
4 BIN = libexample.so main
5 CC = gcc
6 CFLAGS = -O0 -g
7
8 all: $(BIN)
9
10 main: main.c example.h
11 $(CC) $(CFLAGS) -o main main.c -L. -lexample
12
13 libexample.so: example.o
14 $(CC) $(CFLAGS) --shared -o libexample.so example.o -ldl
15
16 example.o: example.c example.h
17 $(CC) $(CFLAGS) -o example.o -c example.c -fPIC
18
19
20 clean:
21 rm -f $(BIN) *.o