Brad Bishop | 93fb535 | 2015-09-09 03:59:20 +0000 | [diff] [blame] | 1 | EXE = obmc-phosphor-fand |
| 2 | OBJS = $(EXE).o |
| 3 | DEPPKGS = gio-unix-2.0 glib-2.0 |
Brad Bishop | f01fcd7 | 2015-09-21 13:57:16 -0400 | [diff] [blame] | 4 | CC ?= $(CROSS_COMPILE)gcc |
Brad Bishop | 93fb535 | 2015-09-09 03:59:20 +0000 | [diff] [blame] | 5 | INCLUDES += $(shell pkg-config --cflags $(DEPPKGS)) |
| 6 | LIBS += $(shell pkg-config --libs $(DEPPKGS)) |
| 7 | |
| 8 | %.o : %.c |
Brad Bishop | 66c8eb0 | 2015-09-18 21:01:41 -0400 | [diff] [blame] | 9 | $(CC) -c $^ $(CFLAGS) $(INCLUDES) -o $@ |
Brad Bishop | 93fb535 | 2015-09-09 03:59:20 +0000 | [diff] [blame] | 10 | $(EXE): $(OBJS) |
Brad Bishop | 66c8eb0 | 2015-09-18 21:01:41 -0400 | [diff] [blame] | 11 | $(CC) $^ $(LDFLAGS) $(LDFLAGS) -o $@ |
Brad Bishop | 93fb535 | 2015-09-09 03:59:20 +0000 | [diff] [blame] | 12 | clean: |
| 13 | rm -f $(OBJS) $(EXE) *.o *.d |
| 14 | distclean: clean |
| 15 | rm -f *.c~ *.h~ *.sh~ Makefile~ config.mk~ |