Magicka now builds and runs on SunOS
This commit is contained in:
29
deps/jamlib/Makefile.sunos
vendored
Normal file
29
deps/jamlib/Makefile.sunos
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
CC = gcc $(CPPFLAGS) $(CFLAGS) -D__LINUX__ $(LDFLAGS) -Wall
|
||||
AR = ar -ru
|
||||
RM = rm -f
|
||||
|
||||
OBJS = crc32.o mbase.o message.o lastread.o subpack.o structrw.o
|
||||
|
||||
jamlib.a : $(OBJS)
|
||||
$(AR) jamlib.a $(OBJS)
|
||||
|
||||
crc32.o: crc32.c jam.h
|
||||
$(CC) -c crc32.c -o crc32.o
|
||||
|
||||
mbase.o: mbase.c jam.h
|
||||
$(CC) -c mbase.c -o mbase.o
|
||||
|
||||
message.o: message.c jam.h
|
||||
$(CC) -c message.c -o message.o
|
||||
|
||||
lastread.o: lastread.c jam.h
|
||||
$(CC) -c lastread.c -o lastread.o
|
||||
|
||||
subpack.o: subpack.c jam.h
|
||||
$(CC) -c subpack.c -o subpack.o
|
||||
|
||||
structrw.o: structrw.c jam.h
|
||||
$(CC) -c structrw.c -o structrw.o
|
||||
|
||||
clean:
|
||||
$(RM) *.o *.a
|
3
deps/jamlib/mbase.c
vendored
3
deps/jamlib/mbase.c
vendored
@@ -85,6 +85,9 @@
|
||||
#if defined( __LINUX__ )
|
||||
#include <sys/file.h>
|
||||
#include <unistd.h>
|
||||
#ifdef __sun
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define OS_ERROR_OFFSET 10000
|
||||
|
Reference in New Issue
Block a user