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 |
Norman James | 1d08cef | 2015-08-25 07:15:58 -0500 | [diff] [blame^] | 19 | $(CC) -o bin/$@.exe obj/power_control.o obj/power_control_obj.o $(CFLAGS) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 20 | |
| 21 | chassis_identify: led.o chassis_identify_obj.o |
Norman James | 1d08cef | 2015-08-25 07:15:58 -0500 | [diff] [blame^] | 22 | $(CC) -o bin/$@.exe obj/led.o obj/chassis_identify_obj.o $(CFLAGS) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 23 | |
| 24 | sensor_ambient: sensor.o sensor_temperature_ambient_obj.o |
Norman James | 1d08cef | 2015-08-25 07:15:58 -0500 | [diff] [blame^] | 25 | $(CC) -o bin/$@.exe obj/sensor.o obj/sensor_temperature_ambient_obj.o $(CFLAGS) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 26 | |
| 27 | button_power: button.o button_power_obj.o |
Norman James | 1d08cef | 2015-08-25 07:15:58 -0500 | [diff] [blame^] | 28 | $(CC) -o bin/$@.exe obj/button.o obj/button_power_obj.o $(CFLAGS) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 29 | |
| 30 | sensor_host_status: sensor.o sensor_host_status_obj.o |
Norman James | 1d08cef | 2015-08-25 07:15:58 -0500 | [diff] [blame^] | 31 | $(CC) -o bin/$@.exe obj/sensor.o obj/sensor_host_status_obj.o $(CFLAGS) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 32 | |
| 33 | host_control: host_control.o host_control_obj.o |
Norman James | 1d08cef | 2015-08-25 07:15:58 -0500 | [diff] [blame^] | 34 | $(CC) -o bin/$@.exe obj/host_control.o obj/host_control_obj.o $(CFLAGS) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 35 | |
| 36 | flash_bios: pflash.o flash.o flash_bios_obj.o |
Norman James | 1d08cef | 2015-08-25 07:15:58 -0500 | [diff] [blame^] | 37 | $(CC) -o bin/$@.exe obj/flash.o obj/flash_bios_obj.o $(OBJS) $(CFLAGS) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 38 | |