source: vital-to8-sdk/gfx-tools/Makefile @ 2

Last change on this file since 2 was 2, checked in by svn, 6 years ago

must include libgen.h or core dumps on dirname

File size: 532 bytes
RevLine 
[1]1CC=gcc
[2]2CFLAGS= -std=c99 -W -Wall -pedantic -D_GNU_SOURCE -DALLEGRO_STATICLINK -g
[1]3LIBS =  -L/usr/lib -Wl,-Bsymbolic-functions -lalleg
4
5OBJ = tga2teo.o
6OBJ2 = tga2teo2.o
7OBJ3 = extract_font.o
8OBJ4 = extract_sprite_chunky.o
9
10all : tga2teo tga2teo2 extract_font extract_sprite_chnky
11
12%.o: %.c
13        $(CC) -c -o $@ $< $(CFLAGS)
14
15tga2teo2: $(OBJ2)
16        gcc -o $@ $^ $(CFLAGS) $(LIBS)
17
18extract_font: $(OBJ3)
19        gcc -o $@ $^ $(CFLAGS) $(LIBS)
20
21extract_sprite_chnky: $(OBJ4)
22        gcc -o $@ $^ $(CFLAGS) $(LIBS)
23
24clean: clean-custom
25        ${RM} $(OBJ) $(BIN)
26
27
Note: See TracBrowser for help on using the repository browser.