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 | ||||
4 | CC = $(CROSS_COMPILE)gcc | ||||
5 | INCLUDES += $(shell pkg-config --cflags $(DEPPKGS)) | ||||
6 | LIBS += $(shell pkg-config --libs $(DEPPKGS)) | ||||
7 | |||||
8 | %.o : %.c | ||||
9 | $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ | ||||
10 | $(EXE): $(OBJS) | ||||
11 | $(CC) $(LDFLAGS) $(LIBS) $^ -o $@ | ||||
12 | clean: | ||||
13 | rm -f $(OBJS) $(EXE) *.o *.d | ||||
14 | distclean: clean | ||||
15 | rm -f *.c~ *.h~ *.sh~ Makefile~ config.mk~ |