blob: d1b331dbe6563930828de17fa8af315309520da5 [file] [log] [blame]
Norman Jamese2765102015-08-19 22:00:55 -05001CC=gcc
2OBJS = objects/pflash/progress.o objects/pflash/ast-sf-ctrl.o
3OBJS += objects/pflash/libflash/libflash.o objects/pflash/libflash/libffs.o
4OBJS += objects/pflash/arm_io.o
5LIBS=/gsa/ausgsa/home/n/j/njames/openbmc
6HOME = /media/sf_vbox/openbmc
7CFLAGS=$(shell pkg-config --libs --cflags gtk+-2.0 glib-2.0)
8
9%.o: interfaces/%.c
10 $(CC) -c -o obj/$@ $< -I$(HOME) $(CFLAGS)
11
12%.o: objects/%.c
13 $(CC) -c -o obj/$@ $< -I$(HOME) -I$(HOME)/objects/pflash $(CFLAGS)
14
15%.o: objects/pflash/%.c
16 $(CC) -c -o obj/$@ $< -I$(HOME) -I$(HOME)/objects/pflash $(CFLAGS)
17
18power_control: power_control.o power_control_obj.o
Norman James1d08cef2015-08-25 07:15:58 -050019 $(CC) -o bin/$@.exe obj/power_control.o obj/power_control_obj.o $(CFLAGS)
Norman Jamese2765102015-08-19 22:00:55 -050020
21chassis_identify: led.o chassis_identify_obj.o
Norman James1d08cef2015-08-25 07:15:58 -050022 $(CC) -o bin/$@.exe obj/led.o obj/chassis_identify_obj.o $(CFLAGS)
Norman Jamese2765102015-08-19 22:00:55 -050023
24sensor_ambient: sensor.o sensor_temperature_ambient_obj.o
Norman James1d08cef2015-08-25 07:15:58 -050025 $(CC) -o bin/$@.exe obj/sensor.o obj/sensor_temperature_ambient_obj.o $(CFLAGS)
Norman Jamese2765102015-08-19 22:00:55 -050026
27button_power: button.o button_power_obj.o
Norman James1d08cef2015-08-25 07:15:58 -050028 $(CC) -o bin/$@.exe obj/button.o obj/button_power_obj.o $(CFLAGS)
Norman Jamese2765102015-08-19 22:00:55 -050029
30sensor_host_status: sensor.o sensor_host_status_obj.o
Norman James1d08cef2015-08-25 07:15:58 -050031 $(CC) -o bin/$@.exe obj/sensor.o obj/sensor_host_status_obj.o $(CFLAGS)
Norman Jamese2765102015-08-19 22:00:55 -050032
33host_control: host_control.o host_control_obj.o
Norman James1d08cef2015-08-25 07:15:58 -050034 $(CC) -o bin/$@.exe obj/host_control.o obj/host_control_obj.o $(CFLAGS)
Norman Jamese2765102015-08-19 22:00:55 -050035
36flash_bios: pflash.o flash.o flash_bios_obj.o
Norman James1d08cef2015-08-25 07:15:58 -050037 $(CC) -o bin/$@.exe obj/flash.o obj/flash_bios_obj.o $(OBJS) $(CFLAGS)
Norman Jamese2765102015-08-19 22:00:55 -050038