]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/open-amp.git/blob - obsolete/system/zynq7/linux/scripts/makefiles/mat_mul_demo/Makefile
d9310ad1ea472b6efb0fd29247a1e9d3b7508154
[processor-sdk/open-amp.git] / obsolete / system / zynq7 / linux / scripts / makefiles / mat_mul_demo / Makefile
1 ifndef PETALINUX
2 $(error "Error: PETALINUX environment variable not set.  Change to the root of your PetaLinux install, and source the settings.sh file")
3 endif
5 include apps.common.mk
7 APP = mat_mul_demo
9 # Add any other object files to this list below
10 APP_OBJS = mat_mul_demo.o
12 all: build install
14 build: $(APP)
16 $(APP): $(APP_OBJS)
17         $(CC) $(LDFLAGS) -lpthread -o $@ $(APP_OBJS) $(LDLIBS)
19 clean:
20         -rm -f $(APP) *.elf *.gdb *.o
22 .PHONY: install image
24 install: $(APP)
25         $(TARGETINST) -d $(APP) /bin/$(APP)
27 %.o: %.c
28         $(CC) -c $(CFLAGS) -o $@ $<