Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CC := sdcc
- INCDIR := "/media/Storage/Dropbox/ISEC/LEE_2012-2013/2º Ano/Cadeiras_2A_1S/Microprocessadores/sdcc-3.4.0"
- CFLAGS := -mmcs51 --iram-size 256 --xram-size 65536 --code-size 65536 --nooverlay --noinduction --verbose --debug -V --std-sdcc99 --model-large -I $(INCDIR)
- # Só precisas de alterar esta linha
- SOURCES := lcd.c multiplexed_led.c simple_keypad.c
- OBJECTS := $(patsubst %.c, %.rel, $(SOURCES))
- BINARY := program
- all: $(BINARY)
- $(BINARY): main.c $(OBJECTS)
- $(CC) $(CFLAGS) -o $@ $^
- %.rel: %.c
- $(CC) $(CFLAGS) -c -o $@ $<
- clean:
- rm -f $(BINARY) $(OBJECTS)
- .PHONY: clean
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement