Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
51b7378e
Commit
51b7378e
authored
May 16, 2005
by
Mike Hibler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Quick hack to create a standalone makefile to build with NTFS support
under linux
parent
ee3e38d2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
4 deletions
+60
-4
os/imagezip/Makefile-linux.sa
os/imagezip/Makefile-linux.sa
+15
-4
os/imagezip/ntfs/libntfs/Makefile-linux.sa
os/imagezip/ntfs/libntfs/Makefile-linux.sa
+45
-0
No files found.
os/imagezip/Makefile-linux.sa
View file @
51b7378e
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-200
4
University of Utah and the Flux Group.
# Copyright (c) 2000-200
5
University of Utah and the Flux Group.
# All rights reserved.
#
...
...
@@ -16,7 +16,7 @@ BINDIR= /usr/local/bin
WITH_EXTFS = 1
WITH_FFS = 1
WITH_FAT = 0
WITH_NTFS = 0
# needs work
WITH_NTFS = 0
PTHREADCFLAGS = -D_THREAD_SAFE -pthread
#PTHREADLIBS = -L/usr/local/lib -llgcc_r
...
...
@@ -45,10 +45,16 @@ FSOBJS += fat/fat_fat.o fat/fat_boot.o fat/fat_glue.o
CFLAGS += -DWITH_FAT -Ifat
endif
ifdef WITH_NTFS
FSOBJS += ntfs/ntfs_glue.o
FSLIBS += ntfs/libntfs/libntfs.a
CFLAGS += -DWITH_NTFS -Intfs/libntfs/ntfsprogs-1.7.1.linux/include
endif
all: imagezip imageunzip imagedump
imagezip: imagezip.o version.o $(FSOBJS)
$(CC) $(CFLAGS) imagezip.o version.o $(FSOBJS) $(LIBS) -o imagezip
imagezip: imagezip.o version.o $(FSOBJS)
$(FSLIBS)
$(CC) $(CFLAGS) imagezip.o version.o $(FSOBJS) $(
FSLIBS) $(
LIBS) -o imagezip
imageunzip: imageunzip.o crc.o version.o
$(CC) $(CFLAGS) imageunzip.o crc.o version.o $(UNZIPLIBS) -o imageunzip
...
...
@@ -62,6 +68,11 @@ imagedump: imagedump.o version.o
version.c: imagezip.c imageunzip.c imagedump.c
echo >$@ "char build_info[] = \"Built `date +%d-%b-%Y` by `id -nu`@`hostname | sed 's/\..*//'`:`pwd`\";"
ntfs/libntfs/libntfs.a:
(cd ntfs/libntfs; make -f Makefile-linux.sa)
ntfs/ntfs_glue.o: ntfs/libntfs/libntfs.a
install:
$(INSTALL) imagezip $(DESTDIR)$(BINDIR)/imagezip
$(INSTALL) imageunzip $(DESTDIR)$(BINDIR)/imageunzip
...
...
os/imagezip/ntfs/libntfs/Makefile-linux.sa
0 → 100644
View file @
51b7378e
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2005 University of Utah and the Flux Group.
# All rights reserved.
#
all: libntfs.a
NTFSDIR = ntfsprogs-1.7.1.linux
INCLUDES = -I${NTFSDIR}/include
CFLAGS = -O2 -g -static -Wall $(INCLUDES)
OBJS= attrib.o \
bitmap.o \
bootsect.o \
compat.o \
debug.o \
dir.o \
disk_io.o \
inode.o \
lcnalloc.o \
mft.o \
mst.o \
runlist.o \
unistr.o \
volume.o
%.o: $(NTFSDIR)/libntfs/%.c
$(CC) $(CFLAGS) -c -o $@ $<
libntfs.a: configureit $(OBJS)
ar crv $@ $(OBJS)
ranlib $@
configureit:
wget -q -N http://www.emulab.net/ntfsprogs-1.7.1.tar.gz
tar zxf ntfsprogs-1.7.1.tar.gz
mv ntfsprogs-1.7.1 $(NTFSDIR)
patch -sN -d $(NTFSDIR) -p1 < ntfs.linuxpatch
$(NTFSDIR)/configure
mv config.h $(NTFSDIR)/include
touch configureit
clean:
rm -f $(OBJS) libntfs.a
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment