Commit d4c2de02 authored by Duncan White's avatar Duncan White

minor tweaks to the Makefile, making it more similar to the c-tools version

parent 37d82980
...@@ -9,7 +9,6 @@ BINDIR = $(DEST)/bin ...@@ -9,7 +9,6 @@ BINDIR = $(DEST)/bin
ARCHDIR = $(BINDIR)/$(ARCH) ARCHDIR = $(BINDIR)/$(ARCH)
MANDIR = $(DEST)/man/man1 MANDIR = $(DEST)/man/man1
CC = gcc CC = gcc
#CC = cc
CFLAGS = -g -UDEBUGGING -Wall CFLAGS = -g -UDEBUGGING -Wall
LDLIBS = LDLIBS =
EXECS = datadec EXECS = datadec
...@@ -20,16 +19,16 @@ datadec_objs = datadec.o parser.o lexer.o struct.o decs.o optimize.o ...@@ -20,16 +19,16 @@ datadec_objs = datadec.o parser.o lexer.o struct.o decs.o optimize.o
all: $(EXECS) all: $(EXECS)
install: $(EXECS)
install -m 755 $(EXECS) $(BINDIR)
install -m 644 c-datadec.man $(MANDIR)/datadec.1
clean: clean:
/bin/rm -f *.o a.out core $(EXECS) /bin/rm -f *.o a.out core $(EXECS)
cd test; make clean cd test; make clean
install: $(EXECS)
#install -m 755 $(EXECS) $(BINDIR)
install -m 755 $(EXECS) $(ARCHDIR)
install -m 644 c-datadec.man $(MANDIR)/datadec.1
datadec: $(datadec_objs) datadec: $(datadec_objs)
$(CC) -g -o datadec $(datadec_objs)
datadec.o: struct.h lexer.h parser.h decs.h optimize.h datadec.o: struct.h lexer.h parser.h decs.h optimize.h
decs.o: struct.h decs.h decs.o: struct.h decs.h
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment