Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 1 | CC=gcc |
| 2 | OBJS = objects/pflash/progress.o objects/pflash/ast-sf-ctrl.o |
| 3 | OBJS += objects/pflash/libflash/libflash.o objects/pflash/libflash/libffs.o |
| 4 | OBJS += objects/pflash/arm_io.o |
| 5 | LIBS=/gsa/ausgsa/home/n/j/njames/openbmc |
| 6 | HOME = /media/sf_vbox/openbmc |
| 7 | CFLAGS=$(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 | |
| 18 | power_control: power_control.o power_control_obj.o |
| 19 | $(CC) -o bin/$@ obj/power_control.o obj/power_control_obj.o $(CFLAGS) |
| 20 | |
| 21 | chassis_identify: led.o chassis_identify_obj.o |
| 22 | $(CC) -o bin/$@ obj/led.o obj/chassis_identify_obj.o $(CFLAGS) |
| 23 | |
| 24 | sensor_ambient: sensor.o sensor_temperature_ambient_obj.o |
| 25 | $(CC) -o bin/$@ obj/sensor.o obj/sensor_temperature_ambient_obj.o $(CFLAGS) |
| 26 | |
| 27 | button_power: button.o button_power_obj.o |
| 28 | $(CC) -o bin/$@ obj/button.o obj/button_power_obj.o $(CFLAGS) |
| 29 | |
| 30 | sensor_host_status: sensor.o sensor_host_status_obj.o |
| 31 | $(CC) -o bin/$@ obj/sensor.o obj/sensor_host_status_obj.o $(CFLAGS) |
| 32 | |
| 33 | host_control: host_control.o host_control_obj.o |
| 34 | $(CC) -o bin/$@ obj/host_control.o obj/host_control_obj.o $(CFLAGS) |
| 35 | |
| 36 | flash_bios: pflash.o flash.o flash_bios_obj.o |
| 37 | $(CC) -o bin/$@ obj/flash.o obj/flash_bios_obj.o $(OBJS) $(CFLAGS) |
| 38 | |