-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.in_old
59 lines (43 loc) · 1.12 KB
/
Makefile.in_old
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Makefile: Makefile.in config.status
./config.status $@
config.status: configure
./config.status --recheck
CC = gcc
LDFLAGS = -lncurses
CFLAGS = -g
package =@PACKAGE_NAME@
version =@PACKAGE_VERSION@
tarname =@PACKAGE_TARNAME@
distdir =$(tarname)-$(version)
OBJ = main.o elf_read.o parseelf.o opc.o cpu_sim.o
DEPS = elf_read.h parseelf.h fusion-opc.h fusion.h cpu.h opc.h cpu_sim.h
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir =@bindir@
DESTDIR =$(prefix)
all: $(PRGNAME)
$(package): $(OBJ)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
%.o: %.c $(DEPS)
$(CC) $(CFLAGS) -c -o $@ $<
fusion-elf:
$(MAKE) -C fusion-elf
clean:
-rm -rf *.o *.gch
$(distdir): FORCE
mkdir -p $(distdir)/src
mkdir -p $(distdir)
cp configure.ac $(distdir)
cp configure $(distdir)
cp Makefile.in $(distdir)
cp src/Makefile.in $(distdir)
cp src/*.c $(distdir)
cp src/*.h $(distdir)
cp -r fusion-elf $(distdir)
distclean:
-rm -rf *.o *.gch $(DESTDIR)$(bindir)
install:
install -d $(DESTDIR)$(bindir)
uninstall:
-rma -rf $(DESTDIR)$(bindir)/fusion-reactor
.PHONY: FORCE all clean dist distcheck distclean install uninstall