aboutsummaryrefslogtreecommitdiff
path: root/apps/chess/Makefile
blob: e84f65f66ae8eb8e91b2770dde75f0ebba1a6ab2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# MIT License, Copyright (c) 2021 Marvin Borner

OBJS = chess.o

all: $(OBJS)
	@mkdir -p $(BUILD)/apps/chess/
	@$(LD) -o $(BUILD)/apps/chess/exec $(LDFLAGS) $^ -lgui -ltxt -lc
ifeq ($(CONFIG_STRIP), true)
	@$(ST) --strip-all $(BUILD)/apps/chess/exec
endif

clean:
	@$(RM) -f $(OBJS)

%.o: %.c
	@$(CC) -c $(CFLAGS) $< -o $@