rm_/Makefile

18 lines
278 B
Makefile
Raw Normal View History

2019-12-06 23:48:38 +08:00
CROSS_COMPILE ?=
CC := $(CROSS_COMPILE)gcc
STRIP := $(CROSS_COMPILE)strip
CFLAGS += -g -O2 -Wall
LIBS = -static
OBJ := rm_
2020-05-21 19:15:37 +08:00
all: rm_.o
2019-12-06 23:48:38 +08:00
$(CC) $(CFLAGS) -o $(OBJ) $^ $(LIBS)
$(STRIP) $(OBJ)
-chmod a+x $(OBJ)
.c.o:
$(CC) $(CFLAGS) -c $< $(LIBS)
clean:
rm -rf *.o
rm $(OBJ)