mirror of
https://github.com/gatieme/LDD-LinuxDeviceDrivers.git
synced 2026-08-22 23:34:54 +08:00
16 lines
182 B
Makefile
16 lines
182 B
Makefile
target=sp
|
|
|
|
all:$(target)
|
|
|
|
sp : sp.o
|
|
|
|
$(target) :
|
|
$(CC) $^ -o $@ $(LDFLAGS)
|
|
|
|
%.o : %.c
|
|
$(CC) -c $^ -o $@ $(CFLAGS) $(DEFINES)
|
|
|
|
clean :
|
|
rm -rf *.o
|
|
rm -rf $(target)
|