aboutsummaryrefslogtreecommitdiff
path: root/basics/Makefile
blob: 6e36dd688d31d641ae68ec8028d5d21a628c9ff3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CC       = $(CROSS_COMPILE)gcc
LD       = $(CROSS_COMPILE)ld
CCFLAGS  =
EXE      = basics

DEBUG =
ifneq ($(strip $(DEBUG)),)
	CCFLAGS += -g
endif

.PHONY: all
all: clean $(EXE)

.PHONY: $(EXE)
$(EXE):
	gcc $(CCFLAGS) -o $(EXE) main.c factorial.S string.S float.S

.PHONY: clean
clean:
	@rm -f $(EXE)