summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2015-12-21 18:32:50 +0000
committerFreeArtMan <dos21h@gmail.com>2015-12-21 18:32:50 +0000
commit8900b3c75142c9701657f20b307d70f106cc3697 (patch)
tree2163fb380a5f66ebe2962a7dd99ee546419bb3d4 /Makefile
parent9381ae971066a42ad00def424c29370ced09eb60 (diff)
downloadradiola-8900b3c75142c9701657f20b307d70f106cc3697.tar.gz
radiola-8900b3c75142c9701657f20b307d70f106cc3697.zip
Add NetBSD support files and config_bsd.h to be compatible with NetBSD
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 01b3fd5..48e9010 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@ PROJECT=radiola
CC=gcc
CFLAGS=
LDFLAGS=
+LDFLAGS_BSD=
CLEAN=
BUILD_DIR=build/
@@ -41,6 +42,10 @@ menuconfig: kconf2h
./mconf Kconfig
tools/kconf2h/kconf2h .config config/config_linux.h
-bsd: kconf2h
+menuconfig-bsd: kconf2h
./mconf Kconfig
- tools/kconf2h/kconf2h .config config/config_bsd.h \ No newline at end of file
+ tools/kconf2h/kconf2h .config config/config_bsd.h
+
+bsd: $(OBJECTS)
+ $(CC) $(OBJECTS_FINAL) $(PROJECT).c -o $(PROJECT) $(LDFLAGS_BSD)
+ ld -r $(OBJECTS_FINAL) -o $(PROJECT).o \ No newline at end of file