OS=$(shell uname)

ifeq ($(OS), Darwin)
LIBS=-lm
else
LIBS=-lm -lrt
endif

all: fixscript.o
	gcc -g -Wall -O3 -o test test.c fixscript.o $(LIBS)
	gcc -g -Wall -O3 -o fixembed fixembed.c

fixscript.o: fixscript.c fixscript.h
	gcc -g -Wall -O3 -o fixscript.o -c fixscript.c
