summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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