-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
86 lines (60 loc) · 2.37 KB
/
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
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
#
# Makefile generated by:
# CodeBench 0.42
#
# Project: KEYMAPSWITCHER DOCKY
#
# Created on: 24-01-2016 12:27:01
#
#
CC = SDK:gcc/bin/gcc
LD = SDK:gcc/bin/gcc
OBJ = \
init.o docky.o hotkey.o \
prefs.o ChooseKeymapMenu2.o \
ChooseKeymapWin.o
BIN = KeymapSwitcher.docky
INCPATH = -I. -Iinclude
CFLAGS = $(INCPATH) -D__NOLIBBASE__ -D__NOGLOBALIFACE__ -D__AMIGADATE__=\"`c:date LFORMAT %d.%m.%Y`\" -Wall -O2 -gstabs
LDFLAGS = -O2 -nostartfiles -N
LIBS =
# add any extra linker libraries you want here
.PHONY: all all-before all-after clean clean-custom realclean
all: all-before $(BIN) all-after
all-before: include/keymapswitcher_strings.h
# You can add rules here to execute before the project is built
all-after:
# You can add rules here to execute after the project is built
clean: clean-custom
rm -v $(OBJ)
realclean:
rm -v $(OBJ) $(BIN)
$(BIN): $(OBJ) $(LIBS)
# You may need to move the LDFLAGS variable in this rule depending on its contents
@echo "Linking $(BIN)"
@$(LD) -o $(BIN).debug $(OBJ) $(LDFLAGS) $(LIBS)
strip $(BIN).debug -o $(BIN)
###################################################################
##
## Standard rules
##
###################################################################
# A default rule to make all the objects listed below
# because we are hiding compiler commands from the output
.c.o:
@echo "Compiling $<"
@$(CC) -c $< -o $*.o $(CFLAGS)
init.o: init.c include/dockybase.h KeyMapSwitcher_rev.h include/keymapswitcher_strings.h
docky.o: docky.c include/dockybase.h KeyMapSwitcher_rev.h include/keymapswitcher_strings.h
hotkey.o: hotkey.c include/dockybase.h KeyMapSwitcher_rev.h include/keymapswitcher_strings.h
prefs.o: prefs.c include/dockybase.h include/prefs.h KeyMapSwitcher_rev.h include/keymapswitcher_strings.h
ChooseKeymapMenu2.o: ChooseKeymapMenu2.c include/dockybase.h include/DockWindow.h include/keymapswitcher_strings.h KeyMapSwitcher_rev.h
ChooseKeymapWin.o: ChooseKeymapWin.c include/dockybase.h include/DockWindow.h include/keymapswitcher_strings.h KeyMapSwitcher_rev.h
###################################################################
##
## Custom rules
##
###################################################################
include/keymapswitcher_strings.h: KeymapSwitcher_docky.cd
APPDIR:CatComp KeymapSwitcher_docky.cd CFILE include/keymapswitcher_strings.h
###################################################################