mirror of
https://github.com/cemu-project/WudCompress.git
synced 2025-02-16 16:19:12 +01:00
Support Linux builds
This commit is contained in:
parent
b0ab5f6b6a
commit
85285bb98b
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
*.o
|
||||
WudCompress/WudCompress
|
13
Makefile
Normal file
13
Makefile
Normal file
@ -0,0 +1,13 @@
|
||||
CXXFLAGS += -D_FILE_OFFSET_BITS=64
|
||||
|
||||
WudCompress/WudCompress: WudCompress/main.o WudCompress/wud.o
|
||||
$(CXX) $(LDFLAGS) -o $@ $^
|
||||
|
||||
install: WudCompress/WudCompress
|
||||
install -d $(DESTDIR)/bin/
|
||||
install WudCompress/WudCompress $(DESTDIR)/bin/
|
||||
|
||||
clean:
|
||||
rm -f WudCompress/WudCompress WudCompress/main.o WudCompress/wud.o
|
||||
|
||||
.PHONY: install
|
@ -29,4 +29,10 @@ void wud_close(wud_t* wud);
|
||||
|
||||
unsigned int wud_readData(wud_t* wud, void* buffer, unsigned int length, long long offset);
|
||||
bool wud_isWUXCompressed(wud_t* wud);
|
||||
long long wud_getWUDSize(wud_t* wud);
|
||||
long long wud_getWUDSize(wud_t* wud);
|
||||
|
||||
#ifndef _WIN32
|
||||
#define _fseeki64 fseeko
|
||||
#define _ftelli64 ftello
|
||||
#define stricmp strcasecmp
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user