Many changes, bugfixes to user vsnprintf and to escape code handling
[tpg/acess2.git] / Usermode / Applications / Makefile.tpl
1 # Acess2 - Application Template Makefile
2 #
3 #
4
5 CFLAGS  += -Wall -fno-builtin -fno-stack-protector -g
6 LDFLAGS += 
7
8 DEPFILES := $(OBJ:%.o=%.d)
9
10 .PHONY : all clean install
11
12 all: $(BIN)
13
14 clean:
15         @$(RM) $(OBJ) $(BIN) $(BIN).dsm Map.txt
16
17 install: $(BIN)
18         $(xCP) $(BIN) $(DISTROOT)/$(DIR)/
19
20 $(BIN): $(OBJ)
21         @echo --- $(LD) -o $@
22         @$(LD) -g $(LDFLAGS) -o $@ $(OBJ) -Map Map.txt
23         @objdump -d -S $(BIN) > $(BIN).dsm
24
25 $(OBJ): %.o: %.c
26         @echo --- GCC -o $@
27         @$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
28         @$(CC) -M -MT $@ $(CPPFLAGS) $< -o $*.d
29
30 -include $(DEPFILES)

UCC git Repository :: git.ucc.asn.au