]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
OpenBSD support wasn't very far away...
authormolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 10 Dec 2003 08:05:25 +0000 (08:05 +0000)
committermolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 10 Dec 2003 08:05:25 +0000 (08:05 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3716 d7cf8633-e32d-0410-b094-e92efae38249

makefile.bsd
sys_shared.c

index 404e718d607005302f58ffa9a5e8a06b7d08def8..95bf677ad2af4f918fad0ff8e14eedb7caa018c8 100644 (file)
@@ -3,7 +3,7 @@
 #choose the compiler you want to use
 CC=gcc
 
-MAKE:=$(MAKE) -f $(.PARSEFILE)
+MAKE:=$(MAKE) -f makefile.bsd
 
 #recommended for: anyone not using ALSA 0.5
 #OBJ_BSDSOUND=snd_oss.o snd_dma.o snd_mix.o snd_mem.o
@@ -174,4 +174,10 @@ clean:
        -$(CMD_RM) *.o
        -$(CMD_RM) *.d
 
--include *.d
+
+##### Dependency files #####
+
+DEPEND_FILES != ls *.d
+.for i in $(DEPEND_FILES)
+.      include "$i"
+.endfor
index 18628ef66d361c3f697f22f4f3d923c96d9a719e..881c560e9fdb7829156d1630f2d96625c7ae7f2d 100644 (file)
@@ -105,6 +105,8 @@ void Sys_Shared_EarlyInit(void)
        os = "Windows";
 #elif defined(__NetBSD__)
        os = "NetBSD";
+#elif defined(__OpenBSD__)
+       os = "OpenBSD";
 #else
        os = "Unknown";
 #endif