gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
gbdk-lib/libc/Makefile.rules
1 $(LIB): pre $(OBJ)
2 for file in $(filter-out %/crt0.o,$(OBJ)) ; do \
3 $(SDAR) -ru $(LIB) $${file} ; \
4 done
5
6 pre: build-dir
7
8 $(BUILD)/%.o: ../%.c
9 $(CC) $(CFLAGS) -c -o $@ $<
10
11 $(BUILD)/%.o: %.c
12 $(CC) $(CFLAGS) -c -o $@ $<
13
14 $(BUILD)/%.o: ../../%.s
15 $(AS) -plosgff $@ $<
16
17 $(BUILD)/%.o: ../%.s
18 $(AS) -plosgff $@ $<
19
20 $(BUILD)/%.o: %.s
21 $(AS) -plosgff $@ $<
22
23 clean:
24 rm -f $(OBJ) $(CLEANSPEC)
25
26 build-dir:
27 mkdir -p $(BUILD)
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.