blob: 569ee21410a7c5beac3feadd051af439fe8cf556 (
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 -Wno-int-conversion -Wno-pointer-to-int-cast -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
|