blob: 10e3fa2ae217d3bff759c8a2f5dbf3cb156af078 [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
Brad Bishop4692b152015-09-21 13:57:16 -04004CC ?= $(CROSS_COMPILE)gcc
Brad Bishop93fb5352015-09-09 03:59:20 +00005INCLUDES += $(shell pkg-config --cflags $(DEPPKGS))
6LIBS += $(shell pkg-config --libs $(DEPPKGS))
7
8%.o : %.c
Brad Bishopddaeffa2015-09-18 21:01:41 -04009 $(CC) -c $^ $(CFLAGS) $(INCLUDES) -o $@
Brad Bishop93fb5352015-09-09 03:59:20 +000010$(EXE): $(OBJS)
Brad Bishopddaeffa2015-09-18 21:01:41 -040011 $(CC) $^ $(LDFLAGS) $(LDFLAGS) -o $@
Brad Bishop93fb5352015-09-09 03:59:20 +000012clean:
13 rm -f $(OBJS) $(EXE) *.o *.d
14distclean: clean
15 rm -f *.c~ *.h~ *.sh~ Makefile~ config.mk~