-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·88 lines (63 loc) · 1.94 KB
/
Copy pathMakefile
File metadata and controls
executable file
·88 lines (63 loc) · 1.94 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
###
### Makefile to build X1kTemp.docky
### Output is created in the current directory
###
CC = gcc
CP = copy clone
RM = delete
# Change these as required
OPTIMIZE = -O4
DEBUG = -g
CFLAGS = $(OPTIMIZE) $(DEBUG) -I. -Iinclude
# Flags passed to gcc during linking
LINK = $(OPTIMIZE) $(DEBUG)
# Name of the "thing" to build
TARGET = X1kTemp.docky
# Additional linker libraries
LIBS =
# Version of the library to build
VERSION = 53
# Source code files used in this project
# Add any additional files to this line
SRCS = init.c docky.c cfg.c readtemp.c locale_support.c
CTS = X1kTemp_fr.ct X1kTemp_de.ct X1kTemp_gr.ct X1kTemp_it.ct X1kTemp_fi.ct
# -------------------------------------------------------------
# Nothing should need changing below this line
OBJS = $(SRCS:.c=.o)
CATALOGS = $(CTS:.ct=.catalog)
# Rules for building
all: $(TARGET) $(CATALOGS)
$(TARGET): $(TARGET).debug
strip $(TARGET).debug -o $@
$(TARGET).debug: $(OBJS)
$(CC) $(LINK) -nostdlib -o $@ $(OBJS) $(LIBS)
locale.h: X1kTemp.cd
Catcomp $^ CFILE $@ NOCODE
%.catalog: X1kTemp.cd %.ct
CatComp $^ CATALOG $(amigapath $@)
.PHONY: clean
clean:
$(RM) $(TARGET) $(OBJS)
.PHONY: release
release:
Copy "X1kTemp Setup/" T:X1kTemp CLONE ALL FOLLOWLINKS COPYLINKS
Copy Catalogs T:X1kTemp/Catalogs CLONE ALL FOLLOWLINKS COPYLINKS
Copy "X1kTemp Setup.info" T:X1kTemp.info
Copy X1kTemp.docky T:X1kTemp/ CLONE ALL FOLLOWLINKS COPYLINKS
Delete t:X1kTemp/.svn t:X1KTemp/installwizard/.svn t:X1KTemp/installwizard/programs/.svn all
Rename t:X1kTemp/AutoInstall T:
.PHONY: distclean
distclean:
$(RM) $(OBJS)
.PHONY: install
install: $(TARGET)
$(CP) $(TARGET) /Utilities/Dockies/
.PHONY: revision
revision:
bumprev $(VERSION) $(TARGET)
init.o: dockybase.h X1kTemp.docky_rev.h
docky.o: dockybase.h X1kTemp.docky_rev.h locale_support.h
init.o: dockybase.h X1kTemp.docky_rev.h
readtemp.o: dockybase.h X1kTemp.docky_rev.h
locale_support.o: locale_support.h locale.h
locale_support.h: locale.h