blob: 6517af089db2db8f06eeaf0844eb9399ad77a0eb [file] [log] [blame]
EXE = obmc-phosphor-qemu
OBJS = $(EXE).o
PACKAGES= gio-unix-2.0 glib-2.0
INCLUDES += $(shell pkg-config --cflags $(PACKAGES))
LIBS += $(shell pkg-config --libs $(PACKAGES))
CC = $(CROSS_COMPILE)gcc
%.o : %.c
$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
$(EXE): $(OBJS)
$(CC) $(LDFLAGS) $(LIBS) $^ -o $@
clean:
rm -f $(OBJS) $(EXE) *.o *.d
distclean: clean
rm -f *.c~ *.h~ *.sh~ Makefile~ config.mk~