blob: fd9db19bbeb9c557d3d15a04a9eb1a5b23fcb5b0 [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
19 $(CC) -o bin/$@ obj/power_control.o obj/power_control_obj.o $(CFLAGS)
20
21chassis_identify: led.o chassis_identify_obj.o
22 $(CC) -o bin/$@ obj/led.o obj/chassis_identify_obj.o $(CFLAGS)
23
24sensor_ambient: sensor.o sensor_temperature_ambient_obj.o
25 $(CC) -o bin/$@ obj/sensor.o obj/sensor_temperature_ambient_obj.o $(CFLAGS)
26
27button_power: button.o button_power_obj.o
28 $(CC) -o bin/$@ obj/button.o obj/button_power_obj.o $(CFLAGS)
29
30sensor_host_status: sensor.o sensor_host_status_obj.o
31 $(CC) -o bin/$@ obj/sensor.o obj/sensor_host_status_obj.o $(CFLAGS)
32
33host_control: host_control.o host_control_obj.o
34 $(CC) -o bin/$@ obj/host_control.o obj/host_control_obj.o $(CFLAGS)
35
36flash_bios: pflash.o flash.o flash_bios_obj.o
37 $(CC) -o bin/$@ obj/flash.o obj/flash_bios_obj.o $(OBJS) $(CFLAGS)
38