[ create a new paste ] login | about

Link: http://codepad.org/Jsuf62b1    [ raw code | fork ]

paulocezar.ufg - C, pasted on Sep 27:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
KER_DIR := /lib/modules/$(shell uname -r)/build
DEBUG = y

obj-m = flash.o

ifeq ($(DEBUG),y)
	DEBFLAGS = -O -g -DMODULE_DEBUG 
else
	DEBFLAHS = -O2
endif

EXTRA_CFLAGS += $(DEBFLAGS)

all:
	$(MAKE) -C $(KER_DIR) M=$(PWD) modules
	@rm -rf *.mod* Module.symvers *.o *~ *.makers *.order

clean:
	@rm -rf *~ *.o *.ko


Create a new paste based on this one


Comments: