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