Skip to content

Commit 997d2b0

Browse files
committed
Added Linux and macOS makefiles
1 parent 4fa62e4 commit 997d2b0

File tree

4 files changed

+45
-0
lines changed

4 files changed

+45
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,6 @@ modules.order
5050
Module.symvers
5151
Mkfile.old
5252
dkms.conf
53+
54+
# Other
55+
build/

Makefile.linux

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
CC = gcc
2+
CFLAGS = -x c
3+
STRIP = strip
4+
RM = rm -f
5+
6+
7+
default: all
8+
9+
all: csw0 csw2cdt
10+
11+
csw0: CSW0.C
12+
$(CC) $(CFLAGS) -o csw0 CSW0.C
13+
$(STRIP) csw0
14+
15+
csw2cdt: CSW2CDT.C
16+
$(CC) $(CFLAGS) -o csw2cdt CSW2CDT.C
17+
$(STRIP) csw2cdt
18+
19+
clean:
20+
$(RM) csw0 csw2cdt

Makefile.macos

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
CC = gcc
2+
CFLAGS = -arch arm64 -arch x86_64 -x c
3+
STRIP = strip
4+
RM = rm -f
5+
6+
7+
default: all
8+
9+
all: csw0 csw2cdt
10+
11+
csw0: CSW0.C
12+
$(CC) $(CFLAGS) -o csw0 CSW0.C
13+
$(STRIP) csw0
14+
15+
csw2cdt: CSW2CDT.C
16+
$(CC) $(CFLAGS) -o csw2cdt CSW2CDT.C
17+
$(STRIP) csw2cdt
18+
19+
clean:
20+
$(RM) csw0 csw2cdt

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# CSW2CDT computer tape tool suite
22

3+
Obtained from <http://cngsoft.no-ip.org/csw2cdt.htm>
4+
35
Select your desired language / Elija idioma:
46

57
- Click [this link for English](#english)

0 commit comments

Comments
 (0)