blob: b8f103da8583d3ad53e5deff39fa9afad6cfa276 [file] [log] [blame]
Brad Bishop93fb5352015-09-09 03:59:20 +00001EXE = obmc-phosphor-fand
2OBJS = $(EXE).o
3DEPPKGS = gio-unix-2.0 glib-2.0
4CC = $(CROSS_COMPILE)gcc
5INCLUDES += $(shell pkg-config --cflags $(DEPPKGS))
6LIBS += $(shell pkg-config --libs $(DEPPKGS))
7
8%.o : %.c
9 $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
10$(EXE): $(OBJS)
11 $(CC) $(LDFLAGS) $(LIBS) $^ -o $@
12clean:
13 rm -f $(OBJS) $(EXE) *.o *.d
14distclean: clean
15 rm -f *.c~ *.h~ *.sh~ Makefile~ config.mk~