pedantic errors, linux makefile

git-svn-id: https://profuse.googlecode.com/svn/trunk@11 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
ksherlock 2009-01-06 06:10:52 +00:00
parent ef3aa273b3
commit 193e1ab933
4 changed files with 20 additions and 3 deletions

3
Disk.h
View File

@ -63,4 +63,5 @@ private:
size_t _size;
};
#endif
#endif

View File

@ -9,7 +9,7 @@
#include "File.h"
#include "common.h"
#include <strings.h>
#include <string.h>
#include <stdint.h>
#include <ctype.h>

View File

@ -30,4 +30,5 @@ inline unsigned load32(const uint8_t *cp)
#endif
#endif

15
makefile.linux Executable file
View File

@ -0,0 +1,15 @@
CC=g++
CFLAGS=-c $(shell pkg-config fuse --cflags)
LDFLAGS=$(shell pkg-config fuse --libs)
SOURCES=main.cpp File.cpp Disk.cpp File.h Disk.h common.h
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=profuse
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) -o $@
.cpp.o:
$(CC) $(CFLAGS) $< -o $@