Skip to content

Commit

Permalink
Terrible code,needs refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
mniec committed Dec 11, 2011
1 parent 8ee7b9c commit 1378ed7
Show file tree
Hide file tree
Showing 2 changed files with 374 additions and 45 deletions.
22 changes: 19 additions & 3 deletions Makefile
@@ -1,16 +1,32 @@
.PHONY: check-syntax

CXX=g++
CC=gcc

EXTRA_CFLAGS=-g3


obj-m := ftpfs.o

PWD:= $(shell pwd)
KERNEL_SOURCES:= /usr/src/linux



default:
$(MAKE) -C $(KERNEL_SOURCES) M=$(PWD) modules

ssh_agent: ssh_agent.c
$(CC) -lssh -o $@ $<

ins: default
insmod ftpfs.ko
rm:
rmmod ftpfs
sudo insmod ftpfs.ko
sudo mount -t ftpfs n:a@127.0.0.1: tmp
rm:
sudo umount tmp
sudo rmmod ftpfs
clean:
rm -f *.o *.ko *.mod.c .*o.cmd

check-syntax:
gcc -I $(KERNEL_SOURCES) -o nul -S $(CHK_SOURCES)

0 comments on commit 1378ed7

Please sign in to comment.