aboutsummaryrefslogtreecommitdiff
path: root/apps/idle/Makefile
blob: f4f973084648d5637606b456fd2dfc7fec770eec (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 = idle.o

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

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

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