ifeq ($(SLASH),) #Native Windows doesn't need any kind of ./ or .\ thing to run an executable in local directory
  RUN=
else
  RUN=.$(SLASH)
endif

PSR=parsegen$(EXE)

OBJS=nf_conf$(OE)

.SUFFIXES: .psr

%$(OE): %.psr $(PSR)
	$(RUN)$(PSR) -gcc $(CC) -compile -flags "$(CFLAGS) -O1" -cheader $*.h $@ $<

ALL: $(OBJS)

$(PSR): parsegen.cpp
	g++ -Wall -O3 -o $@ parsegen.cpp -lz

clean:
	$(DEL) $(PSR) *.h *$(OE)
