dwarf-synthesis/DwarfSynth/c_bindings/Makefile

16 lines
328 B
Makefile
Raw Normal View History

2018-12-23 15:36:24 +01:00
CDEFINE =
CFLAGS = -Wall -Wextra -std=c11 -O2 -g $(CDEFINE)
LIBDWARFW_DIR=../../libdwarfw/build
CLIBS = -L$(LIBDWARFW_DIR) -Wl,-rpath,$(LIBDWARFW_DIR) -lelf -ldwarf -ldwarfw
all: test_dw.bin
test_%.bin: test_%.o dwarf_write.o
gcc $(CFLAGS) $(CLIBS) $^ -o $@
%.o: %.c
gcc $(CFLAGS) -c $< -o $@
clean:
rm -f *.o test_*.bin