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 |
Norman James | ddb9738 | 2015-08-27 21:31:31 -0500 | [diff] [blame] | 10 | $(CC) -c -o obj/$@ $< -I$(HOME) -I$(HOME)/includes $(CFLAGS) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 11 | |
| 12 | %.o: objects/%.c |
Norman James | ddb9738 | 2015-08-27 21:31:31 -0500 | [diff] [blame] | 13 | $(CC) -c -o obj/$@ $< -I$(HOME) -I$(HOME)/includes -I$(HOME)/objects/pflash $(CFLAGS) |
| 14 | |
| 15 | %.o: includes/%.c |
| 16 | $(CC) -c -o obj/$@ $< -I$(HOME) -I$(HOME)/includes -I$(HOME)/objects/pflash $(CFLAGS) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 17 | |
| 18 | %.o: objects/pflash/%.c |
| 19 | $(CC) -c -o obj/$@ $< -I$(HOME) -I$(HOME)/objects/pflash $(CFLAGS) |
| 20 | |
Norman James | 471ab59 | 2015-08-30 22:29:40 -0500 | [diff] [blame] | 21 | power_control: control.o power_control_obj.o gpio.o |
| 22 | $(CC) -o bin/$@.exe obj/gpio.o obj/control.o obj/power_control_obj.o $(CFLAGS) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 23 | |
Norman James | ddb9738 | 2015-08-27 21:31:31 -0500 | [diff] [blame] | 24 | chassis_identify: led.o chassis_identify_obj.o gpio.o |
| 25 | $(CC) -o bin/$@.exe obj/gpio.o obj/led.o obj/chassis_identify_obj.o $(CFLAGS) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 26 | |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 27 | sensor_ambient: sensor.o sensor_threshold.o sensor_temperature_ambient_obj.o |
| 28 | $(CC) -o bin/$@.exe obj/sensor_threshold.o obj/sensor.o obj/sensor_temperature_ambient_obj.o $(CFLAGS) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 29 | |
Norman James | ddb9738 | 2015-08-27 21:31:31 -0500 | [diff] [blame] | 30 | button_power: button.o button_power_obj.o gpio.o |
Norman James | 1d08cef | 2015-08-25 07:15:58 -0500 | [diff] [blame] | 31 | $(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] | 32 | |
| 33 | sensor_host_status: sensor.o sensor_host_status_obj.o |
Norman James | 1d08cef | 2015-08-25 07:15:58 -0500 | [diff] [blame] | 34 | $(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] | 35 | |
Norman James | 9e6acf9 | 2015-09-08 07:00:04 -0500 | [diff] [blame^] | 36 | sensor_occ: sensor.o sensor_occ_obj.o |
| 37 | $(CC) -o bin/$@.exe obj/sensor.o obj/sensor_occ_obj.o $(CFLAGS) |
| 38 | |
Norman James | 471ab59 | 2015-08-30 22:29:40 -0500 | [diff] [blame] | 39 | control_host: control.o control_host_obj.o gpio.o |
| 40 | $(CC) -o bin/$@.exe obj/gpio.o obj/control.o obj/control_host_obj.o $(CFLAGS) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 41 | |
| 42 | flash_bios: pflash.o flash.o flash_bios_obj.o |
Norman James | 1d08cef | 2015-08-25 07:15:58 -0500 | [diff] [blame] | 43 | $(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] | 44 | |
Norman James | 471ab59 | 2015-08-30 22:29:40 -0500 | [diff] [blame] | 45 | fan: fru.o fan_generic_obj.o gpio.o |
| 46 | $(CC) -o bin/$@.exe obj/gpio.o obj/fru.o obj/fan_generic_obj.o $(CFLAGS) |
| 47 | |
| 48 | fru_generic: fru.o fru_generic_obj.o |
| 49 | $(CC) -o bin/$@.exe obj/fru.o obj/fru_generic_obj.o $(CFLAGS) |
| 50 | |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 51 | fru_board: fru.o fru_board_obj.o |
| 52 | $(CC) -o bin/$@.exe obj/fru.o obj/fru_board_obj.o $(CFLAGS) |
Norman James | 471ab59 | 2015-08-30 22:29:40 -0500 | [diff] [blame] | 53 | |
| 54 | |
Norman James | 9e6acf9 | 2015-09-08 07:00:04 -0500 | [diff] [blame^] | 55 | host_watchdog: watchdog.o host_watchdog_obj.o |
| 56 | $(CC) -o bin/$@.exe obj/watchdog.o obj/host_watchdog_obj.o $(CFLAGS) |