forked from unya/usim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (31 loc) · 825 Bytes
/
Makefile
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
VERSION = 0.9-ams
CC = gcc -std=gnu99
CC += -Wall -Wextra
CFLAGS = -g3 -O3
all: TAGS usim readmcr diskmaker lod lmfs cc
usim: usim.o ucode.o mem.o iob.o mouse.o kbd.o tv.o x11.o chaos.o ether.o disk.o lashup.o uart.o decode.o syms.o
$(CC) $(CFLAGS) -o $@ $^ -lpthread -lX11
readmcr: readmcr.o
$(CC) $(CFLAGS) -o $@ $^
diskmaker: diskmaker.o
$(CC) $(CFLAGS) -o $@ $^
lmfs: lmfs.o
$(CC) $(CFLAGS) -o $@ $^
lod: lod.o
$(CC) $(CFLAGS) -o $@ $^
cc: cc.o decode.o
$(CC) $(CFLAGS) -o $@ $^
clean:
rm -f *.o
rm -f *~
rm -f xx
rm -f usim lod readmcr diskmaker lmfs cc
TAGS:
find . -type f -iname "*.[ch]" | etags -
.PHONY: format-source
format-source:
find -name "*.[ch]" -exec ./format-source {} \;
dist:
rm -rf usim-$(VERSION)
svn export . usim-$(VERSION)
tar zcf usim-$(VERSION).tar.gz usim-$(VERSION)