summaryrefslogtreecommitdiff
path: root/elksemu/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'elksemu/Makefile')
-rw-r--r--elksemu/Makefile12
1 files changed, 4 insertions, 8 deletions
diff --git a/elksemu/Makefile b/elksemu/Makefile
index 4b3e056..f613fde 100644
--- a/elksemu/Makefile
+++ b/elksemu/Makefile
@@ -10,11 +10,6 @@ ifeq ($(CC),ncc)
CFLAGS=-Ml -ansi -s $(DEFS)
endif
-# For gcc
-ifeq ($(CC),gcc)
-CFLAGS=-O2 -fno-strength-reduce -Wall -idirafter . $(DEFS)
-endif
-
# Default
ifeq ($(CFLAGS),)
CFLAGS=-O
@@ -29,7 +24,7 @@ endif
OBJ=elks.o elks_sys.o elks_signal.o minix.o
elksemu: $(OBJ)
- $(CC) $(CFLAGS) -o elksemu $(OBJ)
+ $(CC) $(CFLAGS) -o $@ $^
elks_sys.o: call_tab.v
$(OBJ): elks.h
@@ -40,13 +35,14 @@ call_tab.v: dummy
dummy:
-# The kernel patch or module _requires_ this location.
+# The kernel patch or module _requires_ this location but binfmt-misc is easy
+# to redirect.
install: elksemu
install -d $(DIST)/lib
install -s -o root -g root -m 4555 elksemu $(DIST)/lib/elksemu
clean realclean:
- rm -f $(OBJ) elksemu call_tab.v defn_tab.v
+ rm -f $(OBJ) binfmt_elks.o elksemu call_tab.v defn_tab.v
module: binfmt_elks.o