aboutsummaryrefslogblamecommitdiffstats
path: root/makefile
blob: 814a88c4810ff5f219fc74d396074fac526a8b2b (plain) (tree)
1
2
3
4
5
6
7
8
9
              







                     
                          
 
              







                                      
                      








                                         
TARGET=ramdump
CC=clang
CC?=clang
CC_FLAGS=
CC_EXTRA?=
CC_FLAGS+=$(CC_EXTRA)

.DEFAULT:all clean

.PHONY:all clean help dirs

all: $(TARGET)

.c.o:
	$(CC) $(CC_FLAGS) -c $< -o $@ 

android:
	export NDK_PROJECT_PATH=`pwd`
	ndk-build

$(TARGET): $(TARGET).o
	$(CC) $^ $(LD_FLAGS) -o $@

clean:
	rm -f *.o *~ $(TARGET)

help:
	@echo "all is the default target"
	@echo "there is delete."
	@echo "there is clean."