| 1 |
bin = $(HOME)/bin |
| 2 |
CC = gcc |
| 3 |
C_FLAGS = -O3 |
| 4 |
#C_FLAGS = -g |
| 5 |
|
| 6 |
FC_OBJS = frameCount.o mainFrameCount.o |
| 7 |
|
| 8 |
%.o:%.c %.h |
| 9 |
$(CC) $(C_FLAGS) -c $*.c |
| 10 |
|
| 11 |
all: $(bin)/frameCount $(bin)/frameTime |
| 12 |
|
| 13 |
$(bin)/frameTime: mainFrameTime.o frameCount.o |
| 14 |
$(CC) $(C_FLAGS) -o $@ mainFrameTime.o frameCount.o -lm |
| 15 |
|
| 16 |
$(bin)/frameCount: $(FC_OBJS) |
| 17 |
$(CC) $(C_FLAGS) -o $@ $(FC_OBJS) -lm |
| 18 |
|
| 19 |
mainFrameCount.o: mainFrameCount.c frameCount.h |
| 20 |
$(CC) $(C_FLAGS) -c mainFrameCount.c |
| 21 |
|
| 22 |
mainFrameTime.o: mainFrameTime.c frameCount.h |
| 23 |
$(CC) $(C_FLAGS) -c mainFrameTime.c |
| 24 |
|
| 25 |
clean: |
| 26 |
rm *~; rm *.o; rm $(bin)/frameCount |