blob: 0f909095e2eeed9e556ae20f8e392b92f1a92c54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
SRC=$(wildcard *.c)
OBJ=$(SRC:%.c=objects/%.o)
CFLAGS=-static -nostdlib -fno-stack-protector -Wno-implicit-function-declaration -fno-builtin -g
default_target: smash
objects/%.o: %.c
@echo Building $<
@-mkdir -p $$(dirname $@)
@gcc -c $< -o $@ ${CFLAGS}
smash: ${OBJ}
@echo Buliding Smash
@gcc ${OBJ} ../lib/slib.a -o smash ${CFLAGS}
clean:
@echo Cleaning Up Smash
@rm -r objects smash
|